G
Guest
Greetings.
I am writing a query that looks up escorts trained on a certain day.
When an escort is trained, his training date is tracked inn the [All Escorts
tbl]
in the Trained field. The Trained field is defined as a date/time field
with a
format of medium date.
When somebody wishes to query all the escorts trained on a certain day,
he enters their training date in the DateTxt field of [Find Escorts frm].
He then
issues a query. DateTxt is defined as a text box with a medium date format.
The problem is that the query does not seem to be able to accurately compare
the Training field in the table with the DateTxt field in the form and I'm not
able to successfully look up the date.
When I query on the name, which can also be entered as a separate field
in the form, I don't have a problem.
Here's the comparison that I'm attempting to make in the query:
[All Escorts tbl].[Trained]=[Forms]![Find Escorts frm]![DateTxt]
I know that date comparisons can be tricky. Does anybody know how I can
modify this comparison to make is work correctly and select those records
where the dates are equal?
I am writing a query that looks up escorts trained on a certain day.
When an escort is trained, his training date is tracked inn the [All Escorts
tbl]
in the Trained field. The Trained field is defined as a date/time field
with a
format of medium date.
When somebody wishes to query all the escorts trained on a certain day,
he enters their training date in the DateTxt field of [Find Escorts frm].
He then
issues a query. DateTxt is defined as a text box with a medium date format.
The problem is that the query does not seem to be able to accurately compare
the Training field in the table with the DateTxt field in the form and I'm not
able to successfully look up the date.
When I query on the name, which can also be entered as a separate field
in the form, I don't have a problem.
Here's the comparison that I'm attempting to make in the query:
[All Escorts tbl].[Trained]=[Forms]![Find Escorts frm]![DateTxt]
I know that date comparisons can be tricky. Does anybody know how I can
modify this comparison to make is work correctly and select those records
where the dates are equal?