I have a form that shows a calendar...to make a long story short I want to open a report (Report1) and have it only show those records that have the same date as the day I'm on in the form. This value is stored in the aGridDate(intControl) that you see below. I know there are records for that day but nothing comes up in the report...even if I just stick todays date in instead of aGridDate.
I think this has to do with how I am phrasing the Where statement...what the heck am I doing wrong here?
For this example
The report is called Report1, table for the report is called Mailing and the date field I am trying to filter on from that table is called Drop Date.
Any ideas would be appreciated.
I think this has to do with how I am phrasing the Where statement...what the heck am I doing wrong here?
Code:
Private Sub PrntReport(intControl As Integer)
Dim stDocName As String
stDocName = "Report1"
DoCmd.OpenReport stDocName, acPreview, , "[Mailing]![Drop Date]=" & aGridDate(intControl)
End Sub
For this example
The report is called Report1, table for the report is called Mailing and the date field I am trying to filter on from that table is called Drop Date.
Any ideas would be appreciated.