Click here to Skip to main content
15,912,400 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How can I display data from an access database to other controls of the form depending on the value of a combobox in VB .NET 2008?
Posted
Comments
[no name] 23-Sep-12 4:48am    
When the combobox changes. connect to your database, get the data you want and then display it.
ridoy 23-Sep-12 4:57am    
question isn't clear

Please take a look at the following page, it describes how to databind data to the DataGridView.
http://msdn.microsoft.com/en-us/library/fbk67b6z(v=vs.90).aspx#Y0[^]

In your case you will need to bind the SelectedIndexChanged event of the combobox to a custom handler that will reconnect to a different datasource and then rebind the data.

Hope this helps you on your way.
 
Share this answer
 
Take a look at those links:

http://support.microsoft.com/kb/821765[^]
http://www.dreamincode.net/forums/topic/33904-connecting-vb-forms-to-access-database/[^]
http://p2p.wrox.com/ado-net/28703-how-vbulletin-net-connect-access-database.html[^]

...

You'll find much more information searching for "connect vb.net to access database" in google.

Hope any of those links help you.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900