We help IT Professionals succeed at work.

vb.net code to open Access 2007 db

Medium Priority
668 Views
Last Modified: 2012-05-06
I have a vb.net app in which the code references and opens an Access database.
We've recently upgraded to Access 2007 but not it appears the vb.net code does not recognize the reference to Access.
example code:
 Private app As Access.Application
app = New Access.Application

in both cases "Access.Application" errors out as "Not Defined"

do I have to add a reference to the recently installed Access application somewhere?

Comment
Watch Question

Commented:
I bet is that you're missing the Office 2007 "Primary Interop Assemblies" (PIA).    So, download and install the following:
http://www.microsoft.com/DOWNLOADS/details.aspx?familyid=59DAEBAA-BED4-4282-A28C-B864D8BFA513&displaylang=en 
 

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
that was it! thanks!!
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.