Link to home
Start Free TrialLog in
Avatar of mmj1
mmj1Flag for United States of America

asked on

Access 2003 - run-time error 2501

We are getting an error message when trying to run one of our access files.  The error message reads: "Run-time error 2501 - The OpenReport action was canceled"  -- when I click on debug it brings me to the following line of code:
            DoCmd.OpenReport stDocName, acViewPreview

This report runs fine when we remote into work from home.  I am not familiar with visual basic code so any help would be appreciated before I have to call out the person that wrote this code.  What is confusing is it runs fine when accessed from the girl's computer from home.  I have uninstalled and re-installed Office2003 Pro and applied SP2.  
Any help is appreciated.  Thank you.
ASKER CERTIFIED SOLUTION
Avatar of DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
DatabaseMX (Joe Anderson - Former Microsoft Access MVP)
Flag of United States of America image

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 mmj1

ASKER

Thank you for your help.  It ended up being an issue with the installation of Windows and/or Office.  I re-installed Windows and Office on one of the computers and the database runs fine.  Thank you for your help.