dominicdunmow
Technical User
I use the following code for a find record commandbutton on one a form.
I would like a message box to appear if the requested record is not found. Can anyone help me with the addition I need to make to this:-
Private Sub Find_Click()
' Find the record that matches the control.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[ID] = " & Str(Nz(Me![Opp_ID_Search], 0))
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
End Sub