P
Paul Johnson
I have a report that needs to have a form open first, in order for the right
set of values to be read into the report. I have put a command button on the
form that opens the report, but I would also like to put some code-- I
guessed it would be in the report's _Open event-- that would abort the
opening if the form wasn't open, to keep users from opening the report right
from the database window.
I can see if the form is open using If Not
SysCmd(acSysCmdGetObjectState, acForm, stDocName) , but I don't know how to
abort the report opening.
Any ideas?
TIA,
Paul Johnson
Alexandria, VA
set of values to be read into the report. I have put a command button on the
form that opens the report, but I would also like to put some code-- I
guessed it would be in the report's _Open event-- that would abort the
opening if the form wasn't open, to keep users from opening the report right
from the database window.
I can see if the form is open using If Not
SysCmd(acSysCmdGetObjectState, acForm, stDocName) , but I don't know how to
abort the report opening.
Any ideas?
TIA,
Paul Johnson
Alexandria, VA