I have a form to add new entries to a table. The table has index fields linked to other tables.
If a user does not fill in all the fields, or clicks into the next row, etc. then Access gives an error message:
"The Microsoft Jet database engine cannot find a record in the table 'tblStockStatus' with key matching field(s) 'intStockStatusID'"
I know why the message is appearing which is fine, what I want to do is trap the error message and give my own message/solution.
I have tried the onCurrent and onDirty events of the form but always get the Access error box. How do I trap the error?
If a user does not fill in all the fields, or clicks into the next row, etc. then Access gives an error message:
"The Microsoft Jet database engine cannot find a record in the table 'tblStockStatus' with key matching field(s) 'intStockStatusID'"
I know why the message is appearing which is fine, what I want to do is trap the error message and give my own message/solution.
I have tried the onCurrent and onDirty events of the form but always get the Access error box. How do I trap the error?