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.
 
Back
Top