G
gr
Hi all,
How to do this`?
in the details section of my report I have to receive the
contents for 12 registers. I have a Case select to
determine what to do with register 1, 2, etc. in my case
else (if I get more than 12 registers) I want to send an
error message and cancel the report. but the report is not
cancelled. instead I receive the mesbox for every extra
register and the report is opened (which I don't want to
happen) the code for the Case Else:
Case Else
MsgBox "The page you are trying to send is too big for 12
Registers!" & vbCrLf & "Cancelling report .. ", _
vbCritical, "Warning"
Cancel = True
End Select
this code is on the On Format event of details section.
thx all.
How to do this`?
in the details section of my report I have to receive the
contents for 12 registers. I have a Case select to
determine what to do with register 1, 2, etc. in my case
else (if I get more than 12 registers) I want to send an
error message and cancel the report. but the report is not
cancelled. instead I receive the mesbox for every extra
register and the report is opened (which I don't want to
happen) the code for the Case Else:
Case Else
MsgBox "The page you are trying to send is too big for 12
Registers!" & vbCrLf & "Cancelling report .. ", _
vbCritical, "Warning"
Cancel = True
End Select
this code is on the On Format event of details section.
thx all.