Accessing a MS Access DB using VB?

I am trying to open a MS Access dB on a machine that only has a run-time version of Access using VB.  Currently I am using "CreateObject("Access.Application") to open the .mdb and this works on machines with MS Access but not on ones with just runtime versions.  I have tried GetObject but this fails.  Is there an object similar to Access.Application that is for runtime versions of Access?  Also, the main part of the program is in the .mdb file and runs fine on these machines but I want to open and close it through VB to hide the location of the file from end users.
melissalutz1Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
The object Access.Application comes on machines where Office has been installed.  The file MSACC8.OLB (Access97) is installed that allows creating Access objects.

This file is not installed with the run-time version of Access, and according to Micro$oft, it is a violation of the license to install this file on a machine that isn't licensed for Office.
0
dwalexCommented:
If you're simply trying to open a stand-alone run-time only Access project, you probably need the SHELL command.
0
AndySulzCommented:
To Access a database with VB, use the Data1 control and a DBGrid, On the properties for the Data control, make sure you specify a DatabaseName and a RecordSource, on the DBGrid control in the properties make the "Data Source" = to Data1.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.