J
Justin
I have a form with two unbound combo boxes. The combo boxes are used in the
Where close of the forms record source.
Select Field1, Field2
From tblMyTable
Where (([Field1] = Forms![MyForm]![Combo1]) AND ([Field2] =
Forms![MyForm]![Combo2]));
The user will select values for the combo boxes and press a command button
to refresh and requery the form.
Me.Refresh
Me.Requery
All works well until the form is closed. I have a command button on the
form for closing
DoCmd.Close acForm, "frmMyForm", acSaveNo
When this is pressed an access box is displayed requesting the value of
Forms![MyForm]![Combo1] and then a second one Forms![MyForm]![Combo1]
Even if I enter a valid value for both requests the system crashes. If I
use the File\Close commnd from the toolbar the form closes fine? Any
thoughts or assistance will b appreciated.
Where close of the forms record source.
Select Field1, Field2
From tblMyTable
Where (([Field1] = Forms![MyForm]![Combo1]) AND ([Field2] =
Forms![MyForm]![Combo2]));
The user will select values for the combo boxes and press a command button
to refresh and requery the form.
Me.Refresh
Me.Requery
All works well until the form is closed. I have a command button on the
form for closing
DoCmd.Close acForm, "frmMyForm", acSaveNo
When this is pressed an access box is displayed requesting the value of
Forms![MyForm]![Combo1] and then a second one Forms![MyForm]![Combo1]
Even if I enter a valid value for both requests the system crashes. If I
use the File\Close commnd from the toolbar the form closes fine? Any
thoughts or assistance will b appreciated.