H
Hector Cabrera via AccessMonster.com
I want to create a form based on say "Form1" through Access VBA code.
I want to colled data on the instance of Form1 (myFormInst).
However, the rest of the code (see msgbox)keeps runing.
I want the focus to go to myFormInst until data is collected.
Then I want to return to the next line (In this case the msgbox).
When I run this code myFormInst blips for a sec,
then goes away and the msgbox shows up???
Dim myFormInst As Form_Form1
Set myFormInst= New Form_Form1
myFormInst.Visible = True
myFormInst.SetFocus
MsgBox "I am doing this now"
I want to colled data on the instance of Form1 (myFormInst).
However, the rest of the code (see msgbox)keeps runing.
I want the focus to go to myFormInst until data is collected.
Then I want to return to the next line (In this case the msgbox).
When I run this code myFormInst blips for a sec,
then goes away and the msgbox shows up???
Dim myFormInst As Form_Form1
Set myFormInst= New Form_Form1
myFormInst.Visible = True
myFormInst.SetFocus
MsgBox "I am doing this now"