access 2000 backend - accessviolationexception

deepay

New member
Joined
Nov 9, 2010
Messages
2
Programming Experience
3-5
Hi

I am trying to open an access 2000 database using the ACE 12.0 object reference. But I keep getting an "accessviolationexception" that says cannot access read or write protected memory. I need to use the ACE 12.0 in order to execute the application on a windows 7 machine. Any thoughts as to why I get this exception. Below is the code.

Dim obj As Microsoft.Office.Interop.Access.Application
obj = New Microsoft.Office.Interop.Access.Application
obj.OpenCurrentDatabase("F:\Projects\db3.mdb")

Thanks all for your time and help.
 
Back
Top