Frequent bumping in a short period is considered bad form.
Couple ways you can do this. Where is the code that requeries the combobox? Is the combobox LimitToList property set to Yes? This is one way I pass value from a popup.
Code:
DoCmd.OpenForm "DialogGetDate", , , , , acDialog, "Report"
If CurrentProject.AllForms("DialogGetDate").IsLoaded Then
Me.tbxDate = Form_DialogGetDate.tbxDate
DoCmd.Close acForm, "DialogGetDate"
End If
Here is another:
Code:
Private Sub cbxStateNum_NotInList(NewData As String, Response As Integer)
If MsgBox("State Number not in database. Add new project record?", vbYesNo + vbQuestion, "NoRecord") = vbYes Then
If MsgBox("Do you really want to add a new project record?", vbYesNo, "ConfirmAddNewProject") = vbYes Then
DoCmd.OpenForm "AddEditProject", acNormal, , , , acDialog, NewData
Me.cbxStateNum = NewData
Me.lbxProjects.Requery
Me.tbxDateSampled.SetFocus
Else
Me.cbxStateNum = Null
Me.cbxStateNum.SetFocus
End If
Else
Me.cbxStateNum = Null
Me.cbxStateNum.SetFocus
End If
Response = acDataErrContinue
Me.cbxStateNum.Requery
End Sub