I have a table which has 4 fields, 2 of which are populated when the record is created. These two fields combined are the primary key. The first field is BadgeNbr and the second CourseNbr. There will be multiple course records for each BadgeNbr. I have created a form which is bound to this table. The form contains a text box for of the four fields in the record plus a list box which is populated from a query with all record with the badge number which is entered into the text box on the form. The remaining two fields are entered to complete the record.
Now the problem comes. How do I save this record and not get a duplicate key error. I assume that this will require code which is ok but I have not been able to come up with the required code,
Seems straight forward. Any suggestions?
Maybe there is an easier way to update the record.
Now the problem comes. How do I save this record and not get a duplicate key error. I assume that this will require code which is ok but I have not been able to come up with the required code,
Seems straight forward. Any suggestions?
Maybe there is an easier way to update the record.