I've been trying to get this date range qury to work for some time now.
SELECT tblTrackingInfo.Date
FROM tblTrackingInfo
WHERE (((tblTrackingInfo.Date)=IIf(nz([Forms]![frmSearch]![txtFromDate].[Value],""
="",[tblTrackingInfo]![Date],([tblTrackingInfo]![Date] In (SELECT tblTrackingInfo.Date FROM tblTrackingInfo WHERE (tblTrackingInfo.Date) Between [Forms]![frmSearch]![txtFromDate] And [Forms]![frmSearch]![txtToDate])))));
It just keeps returning no results if the form fields are populated.
Help!!!!!!
SELECT tblTrackingInfo.Date
FROM tblTrackingInfo
WHERE (((tblTrackingInfo.Date)=IIf(nz([Forms]![frmSearch]![txtFromDate].[Value],""
It just keeps returning no results if the form fields are populated.
Help!!!!!!