Question : ERROR IN HEADER - DISPLAYS IN PREVIEW BUT DOES NOT PRINT

I have a report with the following in an unbound text box, in the header:
="ALL RECORDS FROM " & [Forms]![datespanF].[txtStartDate] & " thru " & [Forms]![datespanF].[txtEndDate]

The problem is, it displays correctly in print preview, but when I print it, I get:  #Name?

I can't figure out what I'm doing wrong.

Answer : ERROR IN HEADER - DISPLAYS IN PREVIEW BUT DOES NOT PRINT

That's the problem. The start and end dates in the form text boxes go away when the form is closed.

You need to keep the form open until the report is printed ... or printing starts.

mx
Random Solutions  
 
programming4us programming4us