RobertIngles
Technical User
I am trying to fix a form used to book laptops for upgrades. My form has a field called "Barcode" which is the primary index in a table named "TBLLaptop". The user fills in the Barcode field, clicks "Confirm Barcode" button. If the Barcode does not exist in the table an add new record form opens, if the barcode exists the cursor moves to the next field which is a combo box to allow selection of a location and date for the upgrades to be performed.
Here's the problem, if the barcode exists and the user completes the form, clicks the close form button I get an error saying that I cannot save the record as it would create a duplicate record.
The form is based on a query of two tables joined by field "UserID" - tables are TBLLaptop and TBLUser. I am not trying to create a new laptop record, I just want to update the BookingID field to reference the date and location for the upgrade.
I really thought I had this form well designed but I seemed to have screwed it up big time. I only just tonight made the LaptopID the primary key - the primary key was preiously the standard ID number Access assigns. I now fear that for the last two days the users have been creating duplicate records in TBLLaptop - can't say for sure as I don't have access to the network outside of the office. Can anyone tell me what I have done wrong?
If you need more info in order to help me, please tell me what you need to know. I will post the additional info as soon as I read your reply.
Thanks
Robert
Here's the problem, if the barcode exists and the user completes the form, clicks the close form button I get an error saying that I cannot save the record as it would create a duplicate record.
The form is based on a query of two tables joined by field "UserID" - tables are TBLLaptop and TBLUser. I am not trying to create a new laptop record, I just want to update the BookingID field to reference the date and location for the upgrade.
I really thought I had this form well designed but I seemed to have screwed it up big time. I only just tonight made the LaptopID the primary key - the primary key was preiously the standard ID number Access assigns. I now fear that for the last two days the users have been creating duplicate records in TBLLaptop - can't say for sure as I don't have access to the network outside of the office. Can anyone tell me what I have done wrong?
If you need more info in order to help me, please tell me what you need to know. I will post the additional info as soon as I read your reply.
Thanks
Robert