Report printing problem

A

allie357

I have this text box in my report header to display the report title:
="Report Period From" & " " & Forms!XViolationsForm!txtStartDate & " "
& "Through" & " " & Forms!XViolationsForm!txtEndDate


I also have a form that users input filter criteria into and then the
report is opened in Preview mode.

Well, when I print I get the
#Name? error.

How do I fix this?
 
F

fredg

I have this text box in my report header to display the report title:
="Report Period From" & " " & Forms!XViolationsForm!txtStartDate & " "
& "Through" & " " & Forms!XViolationsForm!txtEndDate

I also have a form that users input filter criteria into and then the
report is opened in Preview mode.

Well, when I print I get the
#Name? error.

How do I fix this?

The form "XViolationsForm" must still be open while the report runs.
The form must have text controls named "txtStartDate" and "txtEndDate"
Close the form in the Report's Close event.

Why the extra & " "'s?

="Report Period From " & Forms!XViolationsForm!txtStartDate
& " Through " & Forms!XViolationsForm!txtEndDate
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top