P
Pamela
Found this code and tried to change it to fit my needs but it isn't updating
the cbo after I make the entry in the underlying tbl from which the cbo pulls
and I continue to get the Not In List error...One detail to consider is that
the ID field is AutoNumber pk in the tbl_Adjuster and Number fk in Assn Table
but the entries are being viewed and entered as Text (Adjuster Name) in the
cbo. Here is the code:
Private Sub Assn_Table_Adjuster_ID_NotInList(NewData As String, Response As
Integer)
If MsgBox(NewData & " is not in the list - Add " & NewData, vbQuestion + _
vbYesNo + vbDefaultButton2, "Not Found") = vbYes Then
DoCmd.OpenForm "frm_Adjuster", , , , acFormAdd, acDialog
Response = acDataErrAdded
Me.Requery
With Me.RecordsetClone
.FindFirst "[Adjuster ID] = " & NewData & ""
If Not .NoMatch Then
Me.Bookmark = .Bookmark
End If
End With
Response = acDataErrContinue
End If
End Sub
Thanks so much for the help!
the cbo after I make the entry in the underlying tbl from which the cbo pulls
and I continue to get the Not In List error...One detail to consider is that
the ID field is AutoNumber pk in the tbl_Adjuster and Number fk in Assn Table
but the entries are being viewed and entered as Text (Adjuster Name) in the
cbo. Here is the code:
Private Sub Assn_Table_Adjuster_ID_NotInList(NewData As String, Response As
Integer)
If MsgBox(NewData & " is not in the list - Add " & NewData, vbQuestion + _
vbYesNo + vbDefaultButton2, "Not Found") = vbYes Then
DoCmd.OpenForm "frm_Adjuster", , , , acFormAdd, acDialog
Response = acDataErrAdded
Me.Requery
With Me.RecordsetClone
.FindFirst "[Adjuster ID] = " & NewData & ""
If Not .NoMatch Then
Me.Bookmark = .Bookmark
End If
End With
Response = acDataErrContinue
End If
End Sub
Thanks so much for the help!