Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27509

Binding 2008 Combo Box

$
0
0
Hi...

I'm just learning VB2010 Express (used VB6.0 for years and years)...but now trying to somewhat catch up...anyway, I'm using a book by Murdach (Visual Basic 2010). I am learning about combo boxes... he says that...

I have a form with a state code on in (NJ, WV, etc.)... this is bound to a data source of Customers table ... State Field and that data is entered in the table.

I am to put a combo box on the form and in the "Data Binding Mode"..
DataSource is the State Table,
Display Member is Statename (New Jersey, West Virginia, et.)
Value Member is StateCode (NJ, WV, etc.)
Selected value is to the CustomerTable, State Field
Changed the Combo Box to DropDownList
In DataBindings for the ComboBox, under "Text property" Selected "None" (as instructed)

It says that when the record for the customer is changed to the next customer, the State Name of the state will appear in the combo box...it does this, but he says that if I change the state name in the combo box, the abbreviation (code) should be dispalyed in the Customer.State Field...it is not...it does not change..

Am I doning something wrong? Or is there something else that needs set... I used Databases a lot in our business, and this will be important.

Thanks

Joe-Paul

Viewing all articles
Browse latest Browse all 27509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>