VBAhole22
Registered User.
- Local time
- Today, 09:28
- Joined
- Jan 18, 2002
- Messages
- 117
I am writing an Access front end to a db that resides on SQL Server. My problem is that when a user tries to enter a record that violates ref integrity on the server I get an enigmatic SQL Server error message that is baffling. How can I trap the error beforehand, avoid the SQL message, make a message of my own, and void the action? This typically occurs when the user tries to tab into the subform thus entering the record on the main form with an identical primary key as a pre-exisiting record.