Hi:
I'm using the command SearchForRecord on a form to populate it based on the ID number I look using the comand. I have and afterupdate event on a combo box with the following code:
DoCmd.SearchForRecord , , acFirst, "[ID] = " & Str(Nz(Screen.ActiveControl, 0))
It is working fine any time I select an ID from the list all files on the form are properly populated with the data for that specific record. As I have te option to enter manually the valor on the ID combobox (I do this since when I have a lot of values I do no want to go trought the complete list, just want to enter the number I'm interested) if I enter a number in the list, there is not issues, the form is populated, but if I enter a number ID that is not in the list, nothing happens, I mean the information from previous record found continues populated.
I want to get a verification when the number I enter is not on the list, to trigger a message indicating that the number is not on the list and warn to the user.
I hope my request is clear.
Thank you.