In an Access report how do I determine in a report's Vb Code whet.

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

In an Access report how do I determine in a report's Vb Code whether the
report view is Preview?
 
Put some code into the report's Activate event. It fires if the report is in
opened in acViewPreview, but not if opened acViewNormal.

Typically it would involve a module-level boolean variable that you set to
True in the Activate event, and can then examine in any later event.
 
Thanks

One less sleepless night.

Malcolm

Allen Browne said:
Put some code into the report's Activate event. It fires if the report is in
opened in acViewPreview, but not if opened acViewNormal.

Typically it would involve a module-level boolean variable that you set to
True in the Activate event, and can then examine in any later event.
 

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

Back
Top