I have a form frmLostID on which there is a single text box, txtLostID. A query qryLostID searches a table for the value typed into txtLostID and returns some related fields.
The AfterUpdate function of txtLostID opens another form, frmLostIDShow which displays the value of txtLostID, the other fields returned by qryLostID, and a button to go back to a main menu form.
This all works fine until the user puts enters a value into txtLostID which doesn't exist in the table used by qryLostID. frmLostIDShow still opens but is totally blank, not even the button shows. I need a message saying the value does not exist and a way of getting back to the main menu. Any guesses?
The AfterUpdate function of txtLostID opens another form, frmLostIDShow which displays the value of txtLostID, the other fields returned by qryLostID, and a button to go back to a main menu form.
This all works fine until the user puts enters a value into txtLostID which doesn't exist in the table used by qryLostID. frmLostIDShow still opens but is totally blank, not even the button shows. I need a message saying the value does not exist and a way of getting back to the main menu. Any guesses?