mitchem1
Registered User.
- Local time
- Today, 02:00
- Joined
- Feb 21, 2002
- Messages
- 153
I have a very simple form that users will use to locate a permit. The form has two fields, cboYear and cboReferenceNumber, and one command button, cmdFindPermit. The form works fine. However, the user will be required make selections from both fields and I would like to add code that produces a message box if either or both are not selected (when cmdFindPermit is clicked). For example, if cboYear and cboReferenceNumber are not selected, the message should say, "Please enter a year" and return the cursor to cboYear. If cboYear is entered, but not cboReferenceNumber, the code should do the same except for Reference Number. Thanks for any ideas.