I have a cemetery database where graves are designated by Section, Row and Lot. In the main table (called Lot) I have created a unique index based on these three fields. This flags data errors if someone tries to enter a new burial into an existing grave. This works fine, but Access produces a long-winded error message stating that the changes would “…create duplicate values in the index, primary key or relationship.” Since the user doesn’t see the msg until he tries to save the record he has no clue about which field is a duplicate.
How can I replace this msg with a simpler, more precise one? In the query that drives the data entry form I have created a calculated field called SecRowLot, which is a concatenation of the fields Section, Row and Lot. How can I use this field, or some other technique, to create my error message?
-
Multi-field Index (Access 97-SR-2)
- This topic has 5 replies, 3 voices, and was last updated 23 years, 4 months ago.
AuthorViewing 0 reply threadsAuthorViewing 0 reply threads