Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Developer Toolkits / January 2004

Tip: Looking for answers? Try searching our database.

Crash when opening reports

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt - 18 Jan 2004 23:59 GMT
Does anyone know why Access Runtime has a fatal error
when trying to execute the command docmd.opentreport

Everything executes perfectly when not in runtime
Scott McDaniel - 19 Jan 2004 11:51 GMT
Do you have error handling on this routine? If so, what error are you
getting? If not, it is CRITICAL that you implement error handling on every
routine in your .mdb. What is the exact DoCmd.OpenReport you are using? Is
the recordsource of your report valid?
Signature

Scott McDaniel
CS Computer Software
Visual Basic - Access - Sql Server - ASP

> Does anyone know why Access Runtime has a fatal error
> when trying to execute the command docmd.opentreport
>
> Everything executes perfectly when not in runtime
Matt - 19 Jan 2004 18:18 GMT
Thank you for your reply. Yes I have a error handler in my
procedure and it produces the error "Execution of this
application will be stopped due to a runtime error".  Now,
to make this more interesting I can open the report via a
macro and by referencing it my code with a docmd.runmacro
command.  The report in question is based on a query but I
substituted a report without a record source with a simple
label as the only content and still had the error when
attempting to execute the docmd.openreport.
Bizarre.

>-----Original Message-----
>Do you have error handling on this routine? If so, what error are you
[quoted text clipped - 7 lines]
>
>.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.