S
Sabosis
Hello-
I have a form that is used to update records in an table. The table
has a field called "RecordUpdated" that gets a date from the form when
the form record is updated. I used the following code on the forms
BeforeUpdate event:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me!RecordUpdated = Now()
End Sub
The field in the table is getting updated as planned. The problem I am
having is that I have a form used to generate reports on how many
records were updated on a specific date, etc. The form is based on a
query and has parameter fields in it to select the dates you want to
report against. I choose single date, the report returns no info. If I
use a range of two dates, like start date and end date, but use the
same date in both fields, the report returns no info. The only way I
can get info to show up for say March 12, 2010 would be to put
3/12/2010 in the start date field and 3/13/2010 in the end date
field.
Does anyone know what is wrong with this? Is it something to do with
the format properties of the dates? Should I use =Date() instead of
=Now() in the main forms BeforeUpdate event? Please help if
possible....
Thanks
Scott
I have a form that is used to update records in an table. The table
has a field called "RecordUpdated" that gets a date from the form when
the form record is updated. I used the following code on the forms
BeforeUpdate event:
Private Sub Form_BeforeUpdate(Cancel As Integer)
Me!RecordUpdated = Now()
End Sub
The field in the table is getting updated as planned. The problem I am
having is that I have a form used to generate reports on how many
records were updated on a specific date, etc. The form is based on a
query and has parameter fields in it to select the dates you want to
report against. I choose single date, the report returns no info. If I
use a range of two dates, like start date and end date, but use the
same date in both fields, the report returns no info. The only way I
can get info to show up for say March 12, 2010 would be to put
3/12/2010 in the start date field and 3/13/2010 in the end date
field.
Does anyone know what is wrong with this? Is it something to do with
the format properties of the dates? Should I use =Date() instead of
=Now() in the main forms BeforeUpdate event? Please help if
possible....
Thanks
Scott