ste4en
Technical User
- Aug 1, 2001
- 69
Having trouble with this simple combo report filter - not use a date for the filter before...what do i have wrong?
Private Sub Command2_Click()
Dim stDocName As String
Dim stCriteria As Date
stCriteria = "[Work Date]=" & "#" & Me![Combo0] & "#"
stDocName = "rptDailyTimeReport"
DoCmd.OpenReport stDocName, acPreview, , stCriteria
End Sub
Thanks
Private Sub Command2_Click()
Dim stDocName As String
Dim stCriteria As Date
stCriteria = "[Work Date]=" & "#" & Me![Combo0] & "#"
stDocName = "rptDailyTimeReport"
DoCmd.OpenReport stDocName, acPreview, , stCriteria
End Sub
Thanks