I have a very simple database that is a schedule. The key field is the start date of the schedule. I'm trying to open a report with a filter as follows:
Dim stDocName As String
Dim lookupfilter As String
lookupfilter = "[ControlDate]=" & Me![ControlDate]
stDocName = "rptDays"
DoCmd.OpenReport stDocName, acPreview, , lookupfilter
I've used this same format on many other applications and never had a problem. Does it have something to do with it being a date? Am I being dense because it's too late?
John Green
Dim stDocName As String
Dim lookupfilter As String
lookupfilter = "[ControlDate]=" & Me![ControlDate]
stDocName = "rptDays"
DoCmd.OpenReport stDocName, acPreview, , lookupfilter
I've used this same format on many other applications and never had a problem. Does it have something to do with it being a date? Am I being dense because it's too late?
John Green