I have a form that has a combobox in it and when the NotInList event is fired, a new form is opened to enter the new data. I want the data that was input in the combobox to be in the text box when the input form opens. I also don't want all the error messages to pop up..ie...not in list. I tried the following code to prevent the error messages:
Reply = MsgBox("Do you want to add this Log Number to the Database?", vbYesNo, "Confirm Add new record")
If Reply = vbYes Then
DoCmd.RunCommand acCmdUndo
Response = acDataErrAdded
DoCmd.OpenForm "frmAddIncident", acNormal, , , acFormAdd, acWindowNormal
Me.Requery
But I think by doing so, it deletes the data that was put in the combobox. I still get the error pop ups.
Thanks for you assistance
Reply = MsgBox("Do you want to add this Log Number to the Database?", vbYesNo, "Confirm Add new record")
If Reply = vbYes Then
DoCmd.RunCommand acCmdUndo
Response = acDataErrAdded
DoCmd.OpenForm "frmAddIncident", acNormal, , , acFormAdd, acWindowNormal
Me.Requery
But I think by doing so, it deletes the data that was put in the combobox. I still get the error pop ups.
Thanks for you assistance