Link to home
Start Free TrialLog in
Avatar of Gary2397
Gary2397

asked on

Can't Open Access Reports

I have a vb6 application that opens some reports created in Access. The application works fine, except when I package and deploy the application, I can't view the reports from the machine in which it was installed. This is the code that opens the reports:

With AccessApp
    .OpenCurrentDatabase "\\server\Shared\SomeFolder\MyDb.mdb"
    .RunCommand acCmdWindowHide
    .RunCommand acCmdAppMaximize
    .DoCmd.OpenReport cmbReports.Text, acViewPreview
    .DoCmd.Maximize
   End With
   On Error Resume Next
Set AccessApp = New Access.Application

I can manually locate the Access database and open the reports on the machine that the application is installed, but the application will not open the reports. Any Help?
SOLUTION
Avatar of vinnyd79
vinnyd79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Gary2397
Gary2397

ASKER

The avove code didn't allow me to view. But I took out the "On Error Resume Next" and received the message "Run-Time error '429' ActiveX component can't create object". I will research this error.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial