Hi Kim
What is the error you get? Is it "The OpenReport action was cancelled..."?
If so, then it is coming from the code where you call DoCmd.OpenReport. It
is simply reporting the fact that the report's Open event was cancelled, in
case you want to take any special action. You need to modify your error
handler to ignore error number 2501. For example:
On Error Goto ProcErr
...
DoCmd.OpenReport "MyReport", ...
...
ProcEnd:
Exit Sub
ProcErr:
If Err = 2501 then Resume ProcEnd
MsgBox Err.Description
Resume ProcEnd
--
Good Luck!
Graham Mandeno [Access MVP]
Auckland, New Zealand
Return mail address is invalid in a vain attempt to reduce spam.
Feedback is welcome at: (e-mail address removed)
Please post new questions or followups to newsgroup.