Preview Closing as Soon as It is Loaded

Grezzo

Registered User.
Local time
Today, 07:40
Joined
Feb 28, 2005
Messages
13
This code works fine to preview an invoice in Access2003, but not in Access2000.
DoCmd.OpenReport "Invoice", acViewPreview, , "Invoice.InvNumber = Forms!Invoice!InvNumber"
In Access2000 it just opens then closes as soon as it is open.

Any ideas why and how to get it working right with both?

Also just found out that this code:
DoCmd.OpenReport "Invoice", , , "Invoice.InvNumber = Forms!Invoice!InvNumber"
Also doesn't work, it brings up the printing message, then nothing goes to the print queue :confused:

Cheers
 
Last edited:
Grezzo,

DoCmd.OpenReport "Invoice", , , "Invoice.InvNumber = " & Forms!Invoice!InvNumber

Wayne
 

Users who are viewing this thread

Back
Top Bottom