Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I am filling a combobox from a sql table.

ie:

 

Dim dataAdapter as new SqlDataAdapter("SELECT ID, Barcode FROM Table WHERE Barcode = ' " & txtBarcode.text & " '", Connection)

Dim DataSet as new DataSet

 

dataAdapter.Fill(DataSet, "Table")

 

With combobox

.datasource = DataSet.Tables("Table")

.DisplayMember = "ID"

End With

 

It works fine the problem is there are about 12 ID's with the value of 1; 2 ect. All with the same barcodes.

Is there a way to only display 1 instance of 1 and 1 instance of 2..ect in the combobox??

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...