Mel Henderson
Registered User.
- Local time
- Today, 19:52
- Joined
- Feb 13, 2000
- Messages
- 14
I have a query named UPDATE INVOICE one of the fields is [PLATE NUMBER] I use the following in the criteria for that field, Like [Enter Plate Number]. When I run the query I am prompted to enter a plate number.
I have created a form that is also called UPDATE INVOICE, and use this query as the record source.
I then added a switchboard and used one of the buttons to open my form, if I enter a plate number that is in my data base, I will pull up that record in my form that’s fine but if I enter the wrong plate number I pull up a blank record on my form. I need to bring up a message box that will say “Plate Number is Wrong” and give the user a message box with a Try Again and a Cancel button. If they click on try again they should go back to the [Enter Plate Number window], if they click on Cancel they should go back to the switchboard.
I have tried to use some of the error codes and Dcount codes found on the forum but have had no success. Maybe I was putting it in the wrong place or maybe it was the wrong code for this application.
Thank you for any help you can provide to help with my problem.
Mel
I have created a form that is also called UPDATE INVOICE, and use this query as the record source.
I then added a switchboard and used one of the buttons to open my form, if I enter a plate number that is in my data base, I will pull up that record in my form that’s fine but if I enter the wrong plate number I pull up a blank record on my form. I need to bring up a message box that will say “Plate Number is Wrong” and give the user a message box with a Try Again and a Cancel button. If they click on try again they should go back to the [Enter Plate Number window], if they click on Cancel they should go back to the switchboard.
I have tried to use some of the error codes and Dcount codes found on the forum but have had no success. Maybe I was putting it in the wrong place or maybe it was the wrong code for this application.
Thank you for any help you can provide to help with my problem.
Mel