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.
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?
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.