J
Jesus Campos
Hi,
I have a form and a report with the same data. On the form I active very
times filters and I would like to pass it for report to print the same data
of the form.
To open the report I have
stDocName = "form_name"
If Me.FilterOn = True Then
DoCmd.OpenReport stDocName, acPreview, Me.Filter
Else
DoCmd.OpenReport stDocName, acPreview
End If
But it report an error. Anyone can help me?
Thanks.
I have a form and a report with the same data. On the form I active very
times filters and I would like to pass it for report to print the same data
of the form.
To open the report I have
stDocName = "form_name"
If Me.FilterOn = True Then
DoCmd.OpenReport stDocName, acPreview, Me.Filter
Else
DoCmd.OpenReport stDocName, acPreview
End If
But it report an error. Anyone can help me?
Thanks.