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

VS 2012 Combo Boxes and Databases

$
0
0
Okay, having an issue here. Firstly, this is my first post here; I've been reading the forum for a while.

So, because of a situation at work, I've taken up programming again after not writing any code for 10+ years. I'm working on a "simple" application and I have some questions regarding combo boxes...

My form has 11 combo boxes... Each box is populated via a SQL database table. (that was tricky, but I figured out how)... that much is working.

Here's an example of what I'm trying to do...
THis is basically what my database structure looks like:

Value | Code
Apple | AP
Orange | OR
Kiwi | KI

Right now the combo box is populated with the 'value' column of the table.. what I want is when the user selects Orange from the combo box, I want a Label to change to OR... and so on...

Eventually, as each of the 11 combo boxes are selected, it will create a 17 digit SKU code. via 11 labels.

Thanks for any help!

Viewing all articles
Browse latest Browse all 27350

Trending Articles



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