I need more help on this...I assume theres no way of using the GUI and the properties box to bind the combo box items to the database field?
Heres the auto generated/behind the scenes code for the combo box. I'm using "SelectedValue" here, but had "Text" in the 2nd line code but neither are working. Branch_Department is the database field I have to bind to.
Me.ComboBox1.BackColor = System.Drawing.SystemColors.ButtonFace
Me.ComboBox1.DataBindings.Add(New System.Windows.Forms.Binding("SelectedValue", Me.objdsCustDisp, "CustomerDispute.Branch_Department", True))
Me.ComboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList
Me.ComboBox1.FlatStyle = System.Windows.Forms.FlatStyle.Flat
Me.ComboBox1.ItemHeight = 13
Me.ComboBox1.Items.AddRange(NewObject() {"1 Main Office", "2 Kensington", "3 South", "4 North", "5 City Line", "6 Boulevard", "7 Woodland Ave", "8 16th Street", "9 Lawrence Park", "11 Bell's Corner", "12 Academy Plaza", "13 Baltimore Pike", "14 Rosemore", "15 Folcroft", "16 Eddystone", "18 Springhouse", "19 Narberth", "20 Penn Center", "21 6th & Walnut", "22 Yeadon", "23 Ardmore", "24 Mayfair", "25 Bensalem", "27 Barderwood", "28 Drexel Hill", "29 Newtown", "30 Edgmont", "33 Whitemarsh", "35 Morrell Plaza", "36 Mt. Laurel", "37 Roxborough", "38 Exton", "39 Montgomeryville", "40 Holme Circle", "42 East Norriton", "43 Parkwood", "44 Aramingo", "45 Brous & Tyson", "100 TAP", "101 MAC", "102 Direct Deposit", "103 Mail Services", "104 Certificates", "105 EDP", "106 Lending Operations", "107 Pension", "108 Customer Contact", "109 Collections", "110 Consumer Credit"})
Me.ComboBox1.Location = New System.Drawing.Point(96, 264)
Me.ComboBox1.Name = "ComboBox1"
Me.ComboBox1.Size = New System.Drawing.Size(136, 21)
Me.ComboBox1.TabIndex = 8