hi,
Im having an issue with a not in list event for a combo box.
i have frm1 with subfrm1
subfrm1 has a combo box with a list of names. if the name is not in the table then trigger not in list event and open form 2.
User enters name etc in form 2 then hits submit. i'm trying to requery the combo box to show the name.
I get the following error,
Run-time error'2118':
You must save the current field before you run the Requery action.
Im having an issue with a not in list event for a combo box.
i have frm1 with subfrm1
subfrm1 has a combo box with a list of names. if the name is not in the table then trigger not in list event and open form 2.
User enters name etc in form 2 then hits submit. i'm trying to requery the combo box to show the name.
Code:
Private Sub cmdSubmitName_Click()
If Me.Dirty = True Then
Me.Dirty = False
Forms!frmDailyLog!frmVisitorLog.Form!VisitorName.Requery
DoCmd.Close acForm, "frmVisitorInfo"
end if
End Sub
I get the following error,
Run-time error'2118':
You must save the current field before you run the Requery action.