V
Ves G
I'm trying to open a report of records with a certain
date. The problem is that the date is formatted with the
Date and Time. I use a form to get my initial filter
variables and then use these variables to build a WHERE
condition statement using the LIKE function. I'm using the
following code to open the report with the selected
records but it still gives me all the records:
MyFilterDate = Forms!GetReportVariables.txtReceiptDate & "
##:##:## ??"
strCriteria = "Reports!receipts.[Date] like '" &
MyFilterDate & "'"
DoCmd.OpenReport "receipts", acviewPreview, ,strCriteria
Any help would be appreciated.
Thanks,
VesG
date. The problem is that the date is formatted with the
Date and Time. I use a form to get my initial filter
variables and then use these variables to build a WHERE
condition statement using the LIKE function. I'm using the
following code to open the report with the selected
records but it still gives me all the records:
MyFilterDate = Forms!GetReportVariables.txtReceiptDate & "
##:##:## ??"
strCriteria = "Reports!receipts.[Date] like '" &
MyFilterDate & "'"
DoCmd.OpenReport "receipts", acviewPreview, ,strCriteria
Any help would be appreciated.
Thanks,
VesG