SammyTBlue
MIS
I have a combo box that is used to search for a particular vendor. I want to display a simple Message box if the record is not found. How would I do that?
Below is the code that does the searching. It was created using the Combo Box Wizard.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Client Number] = '" & Me![Combo63] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
SendKeys "{f6}", True
DoCmd.GoToControl "Provsvc"
DoCmd.GoToRecord , , acNewRec
Thanks for the help
Below is the code that does the searching. It was created using the Combo Box Wizard.
Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[Client Number] = '" & Me![Combo63] & "'"
If Not rs.EOF Then Me.Bookmark = rs.Bookmark
SendKeys "{f6}", True
DoCmd.GoToControl "Provsvc"
DoCmd.GoToRecord , , acNewRec
Thanks for the help