I'm trying to run a date query and having no luck. Can anyone tell me what's wrong with this:
When I open the form that uses this query there are no results. If I open the query and fill in the popups with an appropriate date it also returns nothing.
AITDate is a column in tblAITInfo. It has a Data Type of Date/Time and a format of Short Date.
Code:
SELECT tblAITInfo.*, tblTechs.*
FROM tblAITInfo INNER JOIN tblTechs ON tblAITInfo.TechRxEInit=tblTechs.TechRxEInit
WHERE tblAITInfo.AITDate >= Forms!frmAITTotals!StartDate And tblAITInfo.AITDate <= Forms!frmAITTotals!EndDate;
When I open the form that uses this query there are no results. If I open the query and fill in the popups with an appropriate date it also returns nothing.
AITDate is a column in tblAITInfo. It has a Data Type of Date/Time and a format of Short Date.