Help with query with date parameters

eacollie

Registered User.
Local time
Yesterday, 18:19
Joined
May 14, 2011
Messages
159
I have a form based on this query:

Code:
SELECT qryReservationsMC.*, IIf([AddedToOutlook]=True,"*","|") AS Status
FROM qryReservationsMC
WHERE (((qryReservationsMC.EndDate)>=Format([Forms]![frmCalendar]![txtDate],"Short Date")) AND ((qryReservationsMC.StartDate)<=Format([Forms]![frmCalendar]![txtDate],"Short Date")));
it gives me an error "the expression is typed incorrectly or is too complicated..." I think I need "#" for the dates.

Any help?
 
Have you formatted the Textbox on the form to use dates format otherwise it looks to indicate them as text.
 

Users who are viewing this thread

Back
Top Bottom