If anyone can help me with this I would appreciate it.
I have a bound DataList (DataList1) Control bound to Adodc1.
Data Source Adodc1
Bound Column Empid
Data Field Empid
List Field LName
Row Source Adodc1
My code is as follows
Private Sub DataList1_MouseUp(....
Adodc1.Recordset.BookMark = DataList1.SelectedItem
end sub
The problem is when I click on a name in the Data list
I get the error "The change you requested to the table were
not successful because they would create duplicate values in the index, primarykey, or relationship. Change the data in the field that contain duplicate data, remove the index or redefine the index to permit duplicate entries.
Empid is the primary key in an Access table. There are no
duplicates in the Empid field but there are dups in the
Lname field.
Any suggestions.
Thanks
John
I have a bound DataList (DataList1) Control bound to Adodc1.
Data Source Adodc1
Bound Column Empid
Data Field Empid
List Field LName
Row Source Adodc1
My code is as follows
Private Sub DataList1_MouseUp(....
Adodc1.Recordset.BookMark = DataList1.SelectedItem
end sub
The problem is when I click on a name in the Data list
I get the error "The change you requested to the table were
not successful because they would create duplicate values in the index, primarykey, or relationship. Change the data in the field that contain duplicate data, remove the index or redefine the index to permit duplicate entries.
Empid is the primary key in an Access table. There are no
duplicates in the Empid field but there are dups in the
Lname field.
Any suggestions.
Thanks
John