Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connecting To Access

Status
Not open for further replies.

ProjectExplorer

Programmer
Mar 22, 2002
95
GB
I all new to VB.NET (2008) but am slowing moving across from VBA.

What is the best (EASIEST) way to connect, read and write data to an access database? ADO.NET? I also need to be able to include queries with parameter values taken from fields on forms. I am not sure where to start.

Sorry this is vague but I'm used to simple DAO code in Access.

 
ADO.Net is a broad term, but really should be the only way to consider doing new database application development in .Net. You CAN use ADO, but there's really no reason to implement new ADO code in .Net. It's probably best to get a book or find some good tutorials online. There are many components, and even an array of components to choose from for the same task in ADO.Net.
 
the faq should have a basic example for connection to a database, creating a command, adding some parameters, getting results, and displaying them.

-Sometimes the answer to your question is the hack that works
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top