Report - Printing from preview duplicates fields

S

Steve Perrins

I have written a fairly complex report which is created/populated using VBA.
The report is fired from a form with acViewPreview set :-

DoCmd.OpenReport strRep, acViewPreview

The report looks fine in preview but when I print it it duplicates all the
fields I have.

If I change the code to :

DoCmd.OpenReport strRep, acViewNormal
the report also prints correctly.

I have another more complex report which uses VBA to populate the fields and
that works fine.

Any ideas help would be appreciated,

Thank you

Steve
 
S

Steve Perrins

Bypassed problem by adding a counter to vba code in the Detail_Format

nrepcount = nrepcount + 1
If nrepcount > 1 Then
Exit Sub
End If

nrepcount is a global variable
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Printing from preview duplicates fields 1
Access report management 2
Printing a report 2
Report Help 10
Preview Print Report 8
Printing one report 4
Lost Focus ! 4
Report printing 3

Top