CDBPlattco
New member
- Local time
- Today, 12:08
- Joined
- Feb 21, 2018
- Messages
- 5
Evening All,
I know this is an issue that has been run down to death, but I can't seem to get the syntax right and I need some help.
I have a report within a database that I need to filter so it only shows the overdue items. in the past I had used the following:
DoCmd.OpenReport "rpt_CAR_Open_Dept", acViewReport, , "[DueDate]<=" & Format(Date, "\#mm/dd/yyyy\#"), acWindowNormal
Our European office requested that I change the date format on "DueDate" to the "Medium Date" format so that it reads "dd-mmm-yy". However, the change in format of the data now causes problems on the call out of the "[DueDate]" section of the report.
How do I update the OpenReport line to make sure I'm comparing apples to apples in the critiera?
I know this is an issue that has been run down to death, but I can't seem to get the syntax right and I need some help.
I have a report within a database that I need to filter so it only shows the overdue items. in the past I had used the following:
DoCmd.OpenReport "rpt_CAR_Open_Dept", acViewReport, , "[DueDate]<=" & Format(Date, "\#mm/dd/yyyy\#"), acWindowNormal
Our European office requested that I change the date format on "DueDate" to the "Medium Date" format so that it reads "dd-mmm-yy". However, the change in format of the data now causes problems on the call out of the "[DueDate]" section of the report.
How do I update the OpenReport line to make sure I'm comparing apples to apples in the critiera?