Hi
I have an unbound form which adds records to a table with a unique index based on the Month and Year (expmonth and expyear respectively)
When I attempt to add a record that violates the index rules, I receive error 3022 which is exactly what it should do.
What I am trying to do is replace the system with a more user friendly custom message.
I have tried placing error trapping in the on_error properties of the from but it does not replace the system error.
I have also tried to place it within the code for the command button which updates the table but again, the system error persists.
Is this because the form is unbound and if so, is there a way to achieve this?
Many thanks
I have an unbound form which adds records to a table with a unique index based on the Month and Year (expmonth and expyear respectively)
When I attempt to add a record that violates the index rules, I receive error 3022 which is exactly what it should do.
What I am trying to do is replace the system with a more user friendly custom message.
I have tried placing error trapping in the on_error properties of the from but it does not replace the system error.
I have also tried to place it within the code for the command button which updates the table but again, the system error persists.
Is this because the form is unbound and if so, is there a way to achieve this?
Many thanks