G
Gary D.
In Access97, I want to open a form from within a standard VBA module
and display an alert message giving details of errors or other
notifications.
Presently, I use the following:-
DoCmd.OpenForm "ALERTPANE", acNormal, _
acDialog, , acReadOnly, , varMessage
which opens the form okay.
However, the module that perform this OpenForm continues processing
immediately without waiting for a user response, which is what I want.
I've set the form as modal, pop-up and dialog border, but still get
the same result: execution of the main module continues immediately.
Looking in Help, I have found very brief information about opening
multiple instances of a form, but when trying to compile the suggested
code I receive a compile error.
The code taken from Help is:-
Dim frm As New ALERTPANE
frm.Visible = True
where ALERTPANE is my form. The compile error message says
"User-defined type not defined", yet I've copied this code from Help.
Any clues?
I'm not even sure I can achieve opening a form and waiting for a
response using the above technique anyway. Is there perhaps an
alternative method of doing this?
and display an alert message giving details of errors or other
notifications.
Presently, I use the following:-
DoCmd.OpenForm "ALERTPANE", acNormal, _
acDialog, , acReadOnly, , varMessage
which opens the form okay.
However, the module that perform this OpenForm continues processing
immediately without waiting for a user response, which is what I want.
I've set the form as modal, pop-up and dialog border, but still get
the same result: execution of the main module continues immediately.
Looking in Help, I have found very brief information about opening
multiple instances of a form, but when trying to compile the suggested
code I receive a compile error.
The code taken from Help is:-
Dim frm As New ALERTPANE
frm.Visible = True
where ALERTPANE is my form. The compile error message says
"User-defined type not defined", yet I've copied this code from Help.
Any clues?
I'm not even sure I can achieve opening a form and waiting for a
response using the above technique anyway. Is there perhaps an
alternative method of doing this?