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]
>
>.