Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

vb.net code to open Access 2007 db

Posted on 2009-02-11
2
Medium Priority
?
649 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?

0
Comment
Question by:wppiexperts
2 Comments
 
LVL 41

Accepted Solution

by:
graye earned 500 total points
ID: 23614156
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 
 
0
 

Author Comment

by:wppiexperts
ID: 23614781
that was it! thanks!!
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

580 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