Question:
When creating a database (using the Access 1.1 engine) and selecting a field to be a primary index and requiring a unique index value, what will happen when the program is running and the user tries to enter a duplicate record? Will the program crash, or will a message pop up telling the user that he is trying to enter a duplicate record?
Answer:
You will need to use an error trap with On Error Goto error_handler label to make this work. You can trap the error when it occurs. Try doing what you described and you can look at the Err property for the number, and Error$ for the text.
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.






















