Solved

Using Access with a VB app

Posted on 2002-03-27
3
157 Views
Last Modified: 2013-11-14
My question is rather simple as I am new to VB.  I would like to create a small application that uses an access database with a VB front end interface.  I would then like to load the application on a machine that does not have access installed.  Will the application still be able to use the .mdb database or do I need to install Office or additional .dlls on all machines that are going to use the application.  One other thought is there a setting in the database that I created with access that needs to be set.  
0
Comment
Question by:LBoorn
3 Comments
 
LVL 1

Expert Comment

by:COAtheGREAT
ID: 6899228
You dont nead Access to use mdb file but you nead some ODBC or OLEDB driver to access database. For example mdac 2.7
0
 
LVL 12

Accepted Solution

by:
pjknibbs earned 100 total points
ID: 6899239
If you create an installer using the wizard which ships with VB, or using the VB installer creator in InstallShield, it'll add all the stuff you need for you. You would need to do this anyway--just copying the VB executable onto the end user's system isn't likely to work because they're not guaranteed to have the appropriate VB run-time DLL.
0
 
LVL 4

Expert Comment

by:trkcorp
ID: 6899248
If you use the package and deployment wizard that comes with VB to create an install for your programming, then it will automatically include the necessary supporting structure that the target machine may need in order for your program to run and access your database.  This wizard can be found on the Add-Ins manager of the Add-Ins menu in the VB IDE.  You may need to add some files to the install package, such as your access database itself.  This is very simple, and once inside the wizard, it should become readily apparent how to do this.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

743 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now