Opening Reports

J

James

Hello I have tried this:

DoCmd.OpenReport "RptSelectDept", acViewPreview, , acDialog

And it wont work how can I get it to open as a dialog
or "pop up"?

Many Thanks

James
 
F

Fredg

James,

You're missing a comma.
In the OpenReport method, acDialog is the 4th argument, not the 3rd after
the Report Name.


DoCmd.OpenReport "RptSelectDept", acViewPreview, , , acDialog

You are using Access 2000 or later, aren't you?
 

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

Top