K
Karen
I have a form (frmshelflife) that uses a query (qrysearchshelflife) for its
datasource. The query gets the criteria from a dialog box. When the user
enters a code in the dialog box and clicks the 'OK' button, frmshelflife
opens and displays the code, description, and shelflife of the item. I need
to put a message box in there to tell the user if their code wasn't found.
Right now if the code isn't found, frmshelflife displays blank and the user
is stuck with this blank form that can't be closed. I would like a message
box to come up and say 'code not found' and then when the ok button is
clicked the message box closes and the dialog box is restored (it was never
closed). I don't want frmshelflife to open at all if the code isn't found.
IF I have to have it open, I want to close it when the ok button on the
message box is clicked.
I appreciate your help.
Karen
datasource. The query gets the criteria from a dialog box. When the user
enters a code in the dialog box and clicks the 'OK' button, frmshelflife
opens and displays the code, description, and shelflife of the item. I need
to put a message box in there to tell the user if their code wasn't found.
Right now if the code isn't found, frmshelflife displays blank and the user
is stuck with this blank form that can't be closed. I would like a message
box to come up and say 'code not found' and then when the ok button is
clicked the message box closes and the dialog box is restored (it was never
closed). I don't want frmshelflife to open at all if the code isn't found.
IF I have to have it open, I want to close it when the ok button on the
message box is clicked.
I appreciate your help.
Karen