Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Error with Access object

Status
Not open for further replies.

rixx

IS-IT--Management
May 20, 2002
15
US
I am trying to run a couple of reports in Access from a VB6 app. I am able to run it fine on my machine, however when I install it on another machine, I get a Windows error saying that my executable caused a problem and the app shuts down (much like the IE error asking to send/don't send report. The ModName on the error says rpcrt.4dll. I set a reference to Microsoft Access 10.0 Object Library and I'm using Access XP. The other machines are using Access 2000. The program bombs when I do the following:

Set oAccess = New Access.Application
' Open Database
oAccess.OpenCurrentDatabase (MyDB)

I would appreciate any help. This is a time-sensitive issue because I need to fix this ASAP.

Thanks in advance,

Rick
 
You may try to reference Access 9.0 if you are running the app on machines with Access 2000. You may also have to have both Access Xp and 2000 on your development machine.
 
I will try that. Thanks for the help. I'll keep you posted and let the forum know if it works.

rixx
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top