A
AHopper
I have been working on a report based on a date. I have
resolved all the problems except one. I want to run the
report from a command button on Click event. The date
will be entered into a text box and formatted mm/dd/yy.
In the table the report is based on is a field
named "PackDate" it is a Date/Time field formatted to
mm/dd/yy entered as Now() when the record is saved, so it
includes both date and time even though the time is not
displayed. When I enter a date #09/08/2004# as the
criteria for the report it does not recognise it so it
does not select the records I want in the report.
Is there a way to enter another date field in the report
source query that would change the format (remove the
time)so I could reference it when running the report?
Do I have to add another field to the table that will
only contain the date? As mentioned above, presently I
use Now()when the record is saved.
Is it better to design the tables so they have both a
date and a time field? What would be the equivlent of Now
() to populate these fields?
Thank you the help.
Allan
resolved all the problems except one. I want to run the
report from a command button on Click event. The date
will be entered into a text box and formatted mm/dd/yy.
In the table the report is based on is a field
named "PackDate" it is a Date/Time field formatted to
mm/dd/yy entered as Now() when the record is saved, so it
includes both date and time even though the time is not
displayed. When I enter a date #09/08/2004# as the
criteria for the report it does not recognise it so it
does not select the records I want in the report.
Is there a way to enter another date field in the report
source query that would change the format (remove the
time)so I could reference it when running the report?
Do I have to add another field to the table that will
only contain the date? As mentioned above, presently I
use Now()when the record is saved.
Is it better to design the tables so they have both a
date and a time field? What would be the equivlent of Now
() to populate these fields?
Thank you the help.
Allan