I have a form based on a query.
On my form, I have an unbound textbox [srch_id] that I am using to search my records.
Next to this textbox is a button. The VBA on the button (So Far) is:
CODE
DoCmd.GoToControl "CustomerID"
DoCmd.FindRecord Me![srch_id]
Me.srch_id = Null
DoCmd.FindRecord Me![srch_id]
Me.srch_id = Null
Basically, I just want it to find a record with [CustomerID] matching [srch_id] (the unbound textbox).
This code works fine, IF, there is a matching record.
But, if there is no matching record, it doesn't do anything.
Is there some (simple) code I can add to make it display a msgbox if there are no records found?
Thanks in advance!
Rick