Hi,
The scene
I am using MS Access 97
I have a problem where I have a table which holds information on orders the key field is the requisition number
req_no
The problem
When a user adds a record using the form I have created for data input, they may enter a previously entered req_no in by mistake and when this happens access lets them know at the end of all data entry for the form that this will create duplicate entries in the primary key. Access lets the user know with its very technical and un-user friendly message.
I want to be able to control this by means of testing what the user has input into the req_no text box after they update the field, or the control loses focus to another control or when the next control on the form gains focus, any of these methods will do as long it works.
I have looked around on this site in both faqs and using the search, I managed to find a few possible solutions but they didnt work for me.
can anyone please help.
Iddris
The scene
I am using MS Access 97
I have a problem where I have a table which holds information on orders the key field is the requisition number
req_no
The problem
When a user adds a record using the form I have created for data input, they may enter a previously entered req_no in by mistake and when this happens access lets them know at the end of all data entry for the form that this will create duplicate entries in the primary key. Access lets the user know with its very technical and un-user friendly message.
I want to be able to control this by means of testing what the user has input into the req_no text box after they update the field, or the control loses focus to another control or when the next control on the form gains focus, any of these methods will do as long it works.
I have looked around on this site in both faqs and using the search, I managed to find a few possible solutions but they didnt work for me.
can anyone please help.
Iddris