D
dan.cawthorne
I've been trying to write a bit of code that will print a particular
report, if the form fiters are active, if not all records are
displayed and i cant get it to work I've tried the following
Private Sub CmdPrintList_Click()
If Me.FilterOn = True ( <------------------------------That line is
Giving me a GoTo Error)
DoCmd.OpenReport "View All Projects", acViewPreview, , Me.Filter
Else: Me.FilterOn = False
DoCmd.OpenReport "View All Projects", acViewPreview
End If
End Sub
report, if the form fiters are active, if not all records are
displayed and i cant get it to work I've tried the following
Private Sub CmdPrintList_Click()
If Me.FilterOn = True ( <------------------------------That line is
Giving me a GoTo Error)
DoCmd.OpenReport "View All Projects", acViewPreview, , Me.Filter
Else: Me.FilterOn = False
DoCmd.OpenReport "View All Projects", acViewPreview
End If
End Sub