access looking for network printer on ..acPreview

ppoindexter

Registered User.
Local time
Today, 15:15
Joined
Dec 28, 2000
Messages
134
i have a db that i took from work and brought home to work on
when i try to preview a report
i get a window saying that the network printer isnt available...

the code on the command button to open and PREVEIW the report is below

DoCmd.OpenReport stDocName, acPreview, , strWhere

why is access looking for a printer when i just want to preview and how do i correct this error....

i am using access 2002, windows xp home ed. at home (windows xp pro at work)

thanks in advance
pat
 
Use

DoCmd.OpenReport stDocName, acViewPreview, , strWhere

instead of

DoCmd.OpenReport stDocName, acPreview, , strWhere
 

Users who are viewing this thread

Back
Top Bottom