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

VB.NET Access Database OLEDB - Two conditions to fill textboxes

$
0
0
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

Attachment 97899Attachment 97901Attachment 97903Attachment 97905
Attached Images
       

Viewing all articles
Browse latest Browse all 27554

Trending Articles



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