Preview shows data, Printed Report shows #Error

Preview shows data, Printed Report shows #Error

Post by Um9ja3 » Sat, 06 Nov 2004 08:11:03


Hello,

I have a report with calculated fields using Dlookup, DCount and DSum
statements.
The report looks great in preview mode but when I print the report, each
field except for labels has #Error within it.

I'm using a form (combobox) to pass the variable which uses the query for
all the calculated fields in the report. Does the print lose the variable
value of query or something?
 
 
 

Preview shows data, Printed Report shows #Error

Post by fred » Sat, 06 Nov 2004 09:51:10


You may be closing the form before the report is printed.
Make sure there is no code in the report or elsewhere (except in the
report close event), that closes the form.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

 
 
 

Preview shows data, Printed Report shows #Error

Post by Um9ja3 » Sun, 07 Nov 2004 00:35:04

Hello Fred,

I had the call in my macro to close the form which passes the variable for
the query.
You were correct.

Thanks,
Rocky