VbStudent2008
New member
- Joined
- Apr 24, 2009
- Messages
- 2
- Programming Experience
- Beginner
Hello,
I'm pretty new to VB, and need some help with a project I'm working on. I'm trying to create a random name generator, and in order to store all the names I'm using an SQL database. I've got the database set up (simple version just until I get it working) and here's basically what I want the program to do...
My database consists of three main fields: Name, Gender, and Origin (along with corresponding ID's). I want the user to be able to use a drop down combo box to select the gender (m or f) and the origin (i.e. English, German, Chinese, etc.), have the program filter out any data not within these parameters, randomly choose one of the remaining names, and display it on the form in a label.
Does all that make sense?
I'm not quite sure how to get the combo boxes linked to the data set so that, when running, the chosen item filters the data.
Thanks for any help!
SR
I'm pretty new to VB, and need some help with a project I'm working on. I'm trying to create a random name generator, and in order to store all the names I'm using an SQL database. I've got the database set up (simple version just until I get it working) and here's basically what I want the program to do...
My database consists of three main fields: Name, Gender, and Origin (along with corresponding ID's). I want the user to be able to use a drop down combo box to select the gender (m or f) and the origin (i.e. English, German, Chinese, etc.), have the program filter out any data not within these parameters, randomly choose one of the remaining names, and display it on the form in a label.
Does all that make sense?
I'm not quite sure how to get the combo boxes linked to the data set so that, when running, the chosen item filters the data.
Thanks for any help!
SR