View Single Post
  #8  
Old May 15th, 2010, 06:04 AM posted to microsoft.public.access.reports
Duane Hookom[_4_]
external usenet poster
 
Posts: 316
Default Report Won't Print

I can't see any of your code or how you have created the report. Was this
one of my report samples?

--
Duane Hookom
MS Access MVP


"Lydia" wrote in message
...
Duane,

I have a report that is based on a crosstab query. When I preview it, it
opens up Ok. However when I print it, an error message comes up saying: A
custome macro
in this report has failed to run and is preventing report from rendering.

This seems to be caused by the line rstreport.movenext where rstreport is
recordset. Since if I remove this line, the report will print, of course
the
same line over and over again. As soon as I add it back, the error comes
back.

Any idea why this happens?

Thanks.



--
Lydia Liu
Access/VB Programmer



"Duane Hookom" wrote:

Some times objects (tables, forms, reports,...) become corrupt...
--
Duane Hookom
Microsoft Access MVP


"Frank Wagner" wrote:

Duane:

I checked the settings, and both reports were set for the default
printer.
The whole thing is so puzzling that I decided to try the old standby -
recreate the report. It worked. I created a new report, and copied
the
controls from the old report to the new. Who knows why, but this one
prints
like a charm.

Thanks for your help
--
Frank Wagner



"Duane Hookom" wrote:

To determine the printer from design view, select File-Page
Setup-Page tab.
If you can't figure out the issue, then provide more details. It
doesn't help
us to know there is code without knowing the code.

--
Duane Hookom
Microsoft Access MVP


"Frank Wagner" wrote:

Duane:

Both reports are called from forms, and work off select queries
that select
ID #'s from those forms. Each report contains a subreport that
selects
records keyed to the same ID # as the main report. I am not sure
if they are
both connected to the default printer and I'm not sure how to
determine that.

They both open in design view, and have small amounts of VBA code
supporting
them. I hope this helps. The default printer may be a problem.
How do I
find that setting/

Thanks for your interest in helping me.
--
Frank Wagner



"Duane Hookom" wrote:

What else can you tell us about the reports and what have you
tried? Do they
both open in design view? Do they have any code? Are they both
set to print
to the default printer? Do the record sources both return
records?
--
Duane Hookom
Microsoft Access MVP


"Frank Wagner" wrote:

I have two reports that I have created using Access2000. One
will print, and
nothing happens when I click print on the other report. I've
checked the
properties of both reports, and they appear to be the same.

I'm stuck and any help would be appreciated

Thanks

Frank Wagner
--
Frank Wagner