I am getting this error when I add a new item which is not in the list to a combo box:-
Debbugging error occurs at the point: -
Thanks
Code:
If MsgBox(strMessage, vbYesNo + vbQuestion) = vbYes Then
DoCmd.OpenForm "frmAgencyTypesF", _
DataMode:=acFormAdd, _
Windowmode:=acDialog, _
OpenArgs:=NewData
' ensure frmAgencyTypesF closed
DoCmd.Close acForm, "frmaAgencyTypesF"
' ensure agency type has been added
If Not IsNull(DLookup("AgencyTypeID", "AgencyType", NewData & """")) Then
Response = acDataErrAdded
Else
Code:
If Not IsNull(DLookup("AgencyTypeID", "AgencyType", NewData & """")) Then
Thanks