K
kMan
Hello guys,
I am opening multiple instance of a form by the following approach:
dim frm1, frm2 as Form
set frm1 = new Form_frmCustomerSelection
<here I would select a customer in the newly opened form>
dim custID as Integer
custID = frm1.Controls("controlname") <-- To assign the selected ID from
the hidden form, frm1
problem, though, is that Access runs through the code, without waiting for
frm1 to be hidden.
previously I used this approach.
docmd.openform "frmCustomerSelection" windowmode:= acDialog
this would pause the code until frm1 was hidden.... how could pass window
mode with this set frm1 = ... method... or is there another way to do this
I am opening multiple instance of a form by the following approach:
dim frm1, frm2 as Form
set frm1 = new Form_frmCustomerSelection
<here I would select a customer in the newly opened form>
dim custID as Integer
custID = frm1.Controls("controlname") <-- To assign the selected ID from
the hidden form, frm1
problem, though, is that Access runs through the code, without waiting for
frm1 to be hidden.
previously I used this approach.
docmd.openform "frmCustomerSelection" windowmode:= acDialog
this would pause the code until frm1 was hidden.... how could pass window
mode with this set frm1 = ... method... or is there another way to do this