Here's a standard feature I create on most of my combo boxes: On the NotOnListEvent, ask if the user wants to add a project. If yes, call the Project form (if you don't have one, just use the form wizard on the Project table). Assuming your combo box is bound to a field named ProjectID and your form name is frmProject, here is the code:<br>
<br>
Private Sub ProjectID_NotInList(NewData As String, Response As Integer)<br>
On Error GoTo Err_ProjectID_NotInList<br>
Dim intAnswer As Integer<br>
<br>
intAnswer = MsgBox("Poject not in table. Edit Project table?", vbYesNo, vbQuestion)<br>
If intAnswer = vbYes Then<br>
DoCmd.OpenForm "frmProject", acNormal, , , acFormEdit, acDialog ' opens form <br>
Response = acDataErrAdded<br>
Else<br>
Response = acDataErrContinue<br>
End If<br>
<br>
Exit_ProjectID_NotInList:<br>
Exit Sub<br>
<br>
Err_ProjectID_NotInList:<br>
MsgBox Err.Description<br>
Resume Exit_ProjectID_NotInList<br>
<br>
End Sub<br>
<br>
For this event to be triggered, be sure to set the comb's LimitToList property to "Yes".