On 5 May 2006 12:53:35 -0700,
(E-Mail Removed) wrote:
> Because I have a situation where as many as nine reports open and all
> of them have photographs on them. They are a pain to close down. If I
> don't get the error if not open, I'll do it your way. Thanks.
>
> Yes, I do have a module with the IsOpen function in it. But I guess I
> didn't find it. It's there, somewhere.
>
> Thanks all,
>
> Matt
Even if it did throw an error, you can trap it:
On Error GoTo Err_Handler
DoCmd.Close acReport, "SelfPrintNewrpt01a"
Exit_Sub:
Exit Sub
Err_Handler:
If Err = ???? Then
Else
MsgBox "Error #: " & Err.Number & " " & Err.Description
End If
Resume Exit_Sub
Change ???? to whatever the actual error number is.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail