B
Bonnie A
Hi everyone! Using A02 on XP. I have a print form that opens a number of
reports (letters, forms, etc.). Sometimes I only have data that opens the
forms and not the letter. I've used the OnNoData event to display a message
"There is no data for the letter" and there is also the fun little "Open
Report Action Cancelled" dialog box that also appears when you click OK on
the OnNoData message.
How can I have neither occur? Just open the forms and not the letter with
no additional clicks. Removing both causes the letter to open with #Error#
written all over it in every field.
I tried this to trap the error in the OnError event but it doesn't work.
Maybe it's too old? Not sure.
MsgBox "Error#: " & DataErr
Response = acDataErrDisplay
When I was trying to type the above, my cursor kept jumping around. I've
rebooted my PC but maybe I'm typing old commands or something?
I also tried to skip the error message with Select Case but I'm missing
something.
I'm pretty sure the error number is 2501 but don't know how to verify it.
Can someone help? I would really appreciate any assistance. Thanks in
advance for your time.
reports (letters, forms, etc.). Sometimes I only have data that opens the
forms and not the letter. I've used the OnNoData event to display a message
"There is no data for the letter" and there is also the fun little "Open
Report Action Cancelled" dialog box that also appears when you click OK on
the OnNoData message.
How can I have neither occur? Just open the forms and not the letter with
no additional clicks. Removing both causes the letter to open with #Error#
written all over it in every field.
I tried this to trap the error in the OnError event but it doesn't work.
Maybe it's too old? Not sure.
MsgBox "Error#: " & DataErr
Response = acDataErrDisplay
When I was trying to type the above, my cursor kept jumping around. I've
rebooted my PC but maybe I'm typing old commands or something?
I also tried to skip the error message with Select Case but I'm missing
something.
I'm pretty sure the error number is 2501 but don't know how to verify it.
Can someone help? I would really appreciate any assistance. Thanks in
advance for your time.