Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report cannot be printed

Status
Not open for further replies.

seaport

MIS
Jan 5, 2000
923
US
I got a report in Access 2000. It can be previewed OK. However, it cannot be printed out, or be converted to Word or Excel. In other words, I cannot output it to any device.

It is a rather weird problem. Any suggestions?

Thanks in advance.

Seaport
 
seaport
Sometimes Name AutoCorrect causes weird problems, especially with printing. Make sure Name AutoCorrect is turned OFF under Tools>Options>General

Another possibility...if you can Preview the report but nothing prints out, is the report being driven by a form that is being closed after the Preview is fired, so there is nothing to print?

Tom

 
In connections with lupins46's reply..
seaport, Have you changed the windows default printer? If yes a reboot will reset all.

________________________________________
Zameer Abdulla
Visit Me
The best thing to spend on your child is your time.
 
I figured out the problem.

I set up a public property of a class module that will be set to null once it is retrieved. In the format event, the value of the property is retrieved and the reprot runs OK. However, when the report is printed, somehow the Access report has to run the format event again so it only gets a null value.

I can understand that the code will not run correctly (so nothing is outputed) because of the null value. But, strangely there is no warning or error message at all.

The way I fixed it is to store the value of the public property to a report level variable at the Report_Open event. In the format event, the report level variable, instead of the public property, is retrived.

Seaport
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top