Solved

Need a sample download tutorial for VB.net MS Access

Posted on 2014-01-02
4
703 Views
Last Modified: 2014-01-02
I need to start writing some application that uses MS access for database and use adodb to access database from VB net. I am missing tonnes of steps it seems. I am hoping for a good sample to show how to do connection. Retrieve some data.. And maybe display a simple table in a grid.

Somethign to help me start.  A solution would help a lot so I can get around the project setups.


I have Visual Studio 2013
0
Comment
Question by:egirgis
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 37

Expert Comment

by:PatHartman
ID: 39752356
You are not using Access at all.  Access is a rapid application development tool.  It is not a database engine.  You are using Jet or ACE depending on which type (.mdb or .accdb) of database you have.  You will get a better response in a vb.net forum.  occasionally people who work with Access work in other environments but it is not our area of expertise.  Microsoft Access doesn't even need to be installed on your system for you to use vb.net to get data from an "Access" (Jet/ACE) database.  Many people make the mistake of confusing the two but they are separate and Jet/ACE have a life of their own without Access.
0
 

Author Comment

by:egirgis
ID: 39752418
Great! So do I need to modify my Question. It seems I need a VB.net example tutorial with (Jet /ACE).

How would I do that? I am trying with access cause I need something local on my machine. I  don't want to get involved with additional problems at the moment.
0
 
LVL 37

Expert Comment

by:PatHartman
ID: 39752458
Most people who don't use Access think they ARE using Access when they connect to a Jet or ACE database so simply posting the question in a vb.net forum, will probably get what you want:)

If you do have MS Access loaded, open your database and use the QBE to build your SQL string and paste it into your code.  That will minimize the problem with syntax errors.  Remember, your SQL needs to match the target database so if the target is Jet/ACE, the syntax needs to be "Access".  If the target is SQL Server, the syntax needs to be T-SQL.

If your ultimate target is SQL Server, I would suggest downloading SQL Server Express.  It is free and you won't have the hurdle of modifying all your SQL strings later.

In vb.net, the database engine isn't really swappable the way it is when you really are using Access.

Beyond that, I can't help because I only work with MS Access so I don't create connection strings from other applications.
0
 
LVL 22

Accepted Solution

by:
plusone3055 earned 500 total points
ID: 39752465
Here is what you need to get started. Wonderful Microsoft Turtorial  Step By Step :)

http://support.microsoft.com/kb/821765
0

Featured Post

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Excel Web Add-in Where is Visual Basic used 9 79
SSIS - Using VB.NET to parse XML file 11 40
Return Data From Website in Access 6 54
Reoccurring Access Query 24 46
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question