G
Guest
I have a form that had the control source set to the table. Date and Time
text boxes default values were set on the form to Date() and Time()
respectively. This worked just fine. I had a problem with the record order on
the form and had to change the form's control source to a query based off the
table so that I could get the order I wanted. From that point on, default
Date() and Time() quit working. I have tried everything I can think of, and
have band-aided the problem by creating a button that runs code on click as
follows:
Private Sub AutoDate_Click:
Me.Date = VBADate
Me.Time = VBATime
Exit Sub
This works but the user has to hit the button to populate the fields. I'd
much rather figure out why it won't work on default like it used to.
I have even tried to make the fields default on the table. This makes the
new record show the date and time in the query, but it still won't show on
the form.
I'm pulling my hair out over something that I know should be simple. I'd
appreciate any help I could get.
text boxes default values were set on the form to Date() and Time()
respectively. This worked just fine. I had a problem with the record order on
the form and had to change the form's control source to a query based off the
table so that I could get the order I wanted. From that point on, default
Date() and Time() quit working. I have tried everything I can think of, and
have band-aided the problem by creating a button that runs code on click as
follows:
Private Sub AutoDate_Click:
Me.Date = VBADate
Me.Time = VBATime
Exit Sub
This works but the user has to hit the button to populate the fields. I'd
much rather figure out why it won't work on default like it used to.
I have even tried to make the fields default on the table. This makes the
new record show the date and time in the query, but it still won't show on
the form.
I'm pulling my hair out over something that I know should be simple. I'd
appreciate any help I could get.