G
Golfinray
I have a report called 06-07 Active Projects. I am trying to use a command
button on a form to filter it. The report has a field "date plans received" I
would just like the report to open from a command button on a form with only
those records that have a date plans received filled in. I have been trying
to use the where condition on the command button like so:
Private Sub Command0_Click()
Dim strwhere As String
strwhere = "[date plans received] = """ & Me.[date plans received] & """"
DoCmd.OpenReport "06-07 active projects", acViewPreview, , strwhere
End Sub
I can't get this thing to work. It keeps giving me syntax or expression
errors. What am I doing wrong? Help! Thanks, a bunch!!!
button on a form to filter it. The report has a field "date plans received" I
would just like the report to open from a command button on a form with only
those records that have a date plans received filled in. I have been trying
to use the where condition on the command button like so:
Private Sub Command0_Click()
Dim strwhere As String
strwhere = "[date plans received] = """ & Me.[date plans received] & """"
DoCmd.OpenReport "06-07 active projects", acViewPreview, , strwhere
End Sub
I can't get this thing to work. It keeps giving me syntax or expression
errors. What am I doing wrong? Help! Thanks, a bunch!!!