Trapping for unfriendly messages
I have implemented record level access to lock records so that unwanted changes are minimized. Works fine, but when a user tries to modify a field, they are presented with "Your access privileges do not allow you to perform this action". I have tried using the Get(LastError) function in a custom dialog box on several OnObject triggers, but have not been able to catch the error
(Set Error Capture(ON)). How can I replace the unfriendly message with a simple "Record is locked" message?