In AC97, I have the following query. It works when the StartUnload date selected on [Forms]![frmCarsUnloadedReport]![tbxStartUnload]
is Oct-Dec. However, when the selected date is Jan-Sept, no records are returned.
The format of the dates in tblCarsUnloaded and the form's tbxStartUnload are both General Date
How do I get the query to return records when the selected "StartUnload" date is January to September?
Thanks
Brian
is Oct-Dec. However, when the selected date is Jan-Sept, no records are returned.
The format of the dates in tblCarsUnloaded and the form's tbxStartUnload are both General Date
Code:
SELECT tblCarsUnloaded.CarsUnloaded, tblCarsUnloaded.Weight, tblCarsUnloaded.StartUnload, tblCarsUnloaded.FinishUnload, FROM tblCarsUnloaded
WHERE (((Format([tblCarsUnloaded].[StartUnload],'mm/ddyy'))>=[Forms]![frmCarsUnloadedReport]![tbxStartUnload] And (Format([tblCarsUnloaded].[StartUnload],'mm/dd/yy'))<=[Forms]![frmCarsUnloadedReport]![tbxFinishUnload]));
How do I get the query to return records when the selected "StartUnload" date is January to September?
Thanks
Brian