R
RipperT
Hello,
I've used the combo box wizard to create a combo box that looks up records.
It's after_update event code looks like this:
Private Sub Combo16_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[InmateId] = '" & Me![Combo16] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
What could I add to generate a message box that says "record was not found"
Many thanx,
Ripper
I've used the combo box wizard to create a combo box that looks up records.
It's after_update event code looks like this:
Private Sub Combo16_AfterUpdate()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[InmateId] = '" & Me![Combo16] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub
What could I add to generate a message box that says "record was not found"
Many thanx,
Ripper