Replace default error message with custom message

stirlingmw

Board Regular
Joined
Feb 18, 2013
Messages
75
I am trying to replace the default error message

"Run-time error 3075
Syntax error (missing operator) in query expression 'Courses.CourseID ='."

with

"Select and Date and Activity then add Attendees"

This error appears if the operator has not selected a Date in the form header before adding Attendees to the form.

Working on Access 2007

Steve 
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
The date is added through a seprate form. I have been playing around with a few ideas to make it as fool proof as I can. I think I may have come up with the perfect solution.

On Open of the "Attendees" form (this is the form from which the above error message could occur) I now have another form open "Courses" (this is where the date and Course would be input to prevent the above error) with a message "Insert Date and Activity" and an OK button.

The problem I am having now is, when the OK button is pressed the "Course" Form drops to the rear of both Forms. How do I keep this form ontop when OK is pressed?
 
Upvote 0

Forum statistics

Threads
1,221,904
Messages
6,162,744
Members
451,785
Latest member
DanielCorn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top