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 on 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?

[Webinar] Streamline your web hosting managementRegister Today

x
 
AndySulzConnect With a Mentor Commented:
use the data1 control.
0
 
GlenConwayCommented:
Why use Access to open the MDB?  I would have thought it would be better to use ADO.
0
All Courses

From novice to tech pro — start learning today.