Data filled combo box question

Greenmet29

Member
Joined
Apr 29, 2010
Messages
9
Programming Experience
1-3
Hey guys.. I am trying to figure out why every time I change the selected combo box value I get:

"Column 'columnName' is constrained to be unique. Value 'columnValue' is already present."

I don't have any code at all in the selectedindexchanged on the combo box, yet it seems like it is trying to write to the database. The column is a string, which is the primary key in my database. Any ideas? Thanks!
 
Ok, I changed the key to a different field to try and diagnose the problem.. I also put a msgbox in the selectedindexchanged coding. I am starting out with 3 values in my database, and my combo box looks like this:

Value1
Value2
Value3

When I bring the program up, Value1 is in the combo box. I click the drop down arrow and it shows all three values. When I click Value3, the combobox changes to value3 and I get the msgbox. OK the message box and I get another message box. OK it, hit the drop down on the combobox and it looks like this:

value1
value2
value1
 
Back
Top