Open one report with 2 menu configurations

A

Al Camp

From a form, I want to allow the user to either Preview a report (with no
ability to print), or Preview a report (with ability to then print).
(If the user does actually print the report (actually they are tickets),
the system needs to know that, and not allow printing at any time
thereafter.)

My question...
What's the best way to control whether the report just previews, or
previews and prints? The OpenReport doesn't have an OpenArgs argument.

Would it be best, for the PreviewOnly situation, to...
Set a value on my "calling" form like "PreviewOnly."
Have the report OnOpen interrogate that value.
Use that result to trigger the using of a custom menu with only a
Close button on it?

Seems like there might be a more elegant solution.
Thanks for any help...

Al Camp
 
Top