Two conditions to fill textboxes

mikerames

New member
Joined
Mar 19, 2013
Messages
1
Programming Experience
Beginner
Hi all,

I am a newbie at vb.net.
I am trying to build a simple program to work with.

Simple vb.net program with access database with multi-tables.

First, i've created a combobox and added manually string "NIF, NISS".
Second, i've created a Listbox wich, threw the wizzard, i've connected to a dabatase called "AddressBook" and selected tblContacts table, as you can see the images below.

Now, what i want to do is:

If i select "NIF" in the combobox, and a Person in the ListBox, i want to show in the textbox NIF and SenhaNIF the data on the addressbook database columns.
If i select "NISS" in the combobox, and a Person in the ListBox, i want to show in the textbox NISS and SenhaNISS the data on the addressbook database columns.

Maybe i also should create a button "UPDATE" or something, in order to click after selecting the combobox and the listbox to update/show/fill the textboxes...

I only show here one table, but imagine if i need exactly the same process but with other similar table. With the same person names but different columns names...

Sorry my english, i am Portuguese.

Can please anyone help me on this? I've been searching for a lots of tutorials ou even on youtube, but as i am a trully begginner i can't build this...

I'll pay 20 $ to the person who help me or send some portuguese cookies.
SOrry my english.

Thanks
Best regards
Miguel

combobox_strings.JPGdatabase_dataset.JPGrun.JPGaccess_database.JPG
 
Back
Top