K
Kevin
I have a problem with the criteria reference on a date
field.
This query is being used to locate a record based on
three fields in a form. One of those fields is a date
field. I can't get the date field criteria properly
referenced. Any helo would be appreciated!
SELECT DISTINCT Activity.SlsRepID, Activity.Date,
Activity.Time FROM Activity WHERE (((Activity.SlsRepID)="
& [Forms]![Schedule Data Entry]![SalesRep] & ") AND
((Activity.Date)=# & [Forms]![Schedule Data Entry]!
[cboDate] & #) AND ((Activity.Time)='" & [Forms]!
[Schedule Data Entry]![Time] & "'));
The time reference is actually a text field refering to
AM, PM or All day.
Thanks!
Kevin
field.
This query is being used to locate a record based on
three fields in a form. One of those fields is a date
field. I can't get the date field criteria properly
referenced. Any helo would be appreciated!
SELECT DISTINCT Activity.SlsRepID, Activity.Date,
Activity.Time FROM Activity WHERE (((Activity.SlsRepID)="
& [Forms]![Schedule Data Entry]![SalesRep] & ") AND
((Activity.Date)=# & [Forms]![Schedule Data Entry]!
[cboDate] & #) AND ((Activity.Time)='" & [Forms]!
[Schedule Data Entry]![Time] & "'));
The time reference is actually a text field refering to
AM, PM or All day.
Thanks!
Kevin