Hi,
i've got a table with the following structure
Boxes
box_id Autonumber Primary Key
box_nr Text(10) Indexed (no duplicates)
each box can contain a number of documents.
I've created a form with box_nr and a subform to put the documents in.
When i create a duplicate number Access correctly complaints about it. But the message Access displays is rather cryptic (The changes you requested were not successfull because they would create duplicate values in the primary key, index or relationship. Change the data in the field blah blah).
I would rather just display a simple message like 'Box number already in use'.
I've tried to build an After_Update Event with an OnError routine but it would not trap this message.
How do i get my simplified message??
Thank you for your help,
Martijn
---
There are no stupid Questions -- just stupid People
i've got a table with the following structure
Boxes
box_id Autonumber Primary Key
box_nr Text(10) Indexed (no duplicates)
each box can contain a number of documents.
I've created a form with box_nr and a subform to put the documents in.
When i create a duplicate number Access correctly complaints about it. But the message Access displays is rather cryptic (The changes you requested were not successfull because they would create duplicate values in the primary key, index or relationship. Change the data in the field blah blah).
I would rather just display a simple message like 'Box number already in use'.
I've tried to build an After_Update Event with an OnError routine but it would not trap this message.
How do i get my simplified message??
Thank you for your help,
Martijn
---
There are no stupid Questions -- just stupid People