In an Access 2002 database I have the following setup:
On a Form there is a List Box on which records can be viewed and selected. When a user selects a record it can be modified by using Combo Boxes or Text Boxes on the Form to modify the record.
On the table associated with the Form I had to change the properties of 1 column. The properties changed were:
- From the column being Required to not being Required
- From the column being Indexed Yes (No Duplicates) to not being indexed
- Removing the Primary Key and re-assigning the Primary Key to a new column with AutoNumber
The change was done to allow duplicate data on the column. After the change when a user enters duplicate data it is entered into the table just fine but when the new record with duplicate data is selected again (ie: for editing) the data displayed in the Combo and Text boxes is not of the record selected in the List box but rather the first record to have had original data entered. Because of this behavior the user cannot edit the record they have selected.
Here is the code:
Expand|Select|Wrap|Line Numbers
- Sub List35_AfterUpdate()
- ' Find the record that matches the control.
- Me.RecordsetClone.FindFirst "[License] = '" & Me![List35] & "'"
- Me.Bookmark = Me.RecordsetClone.Bookmark
- End Sub
Any ideas?
Thanks.