G
Guest
I often insert If MsgBox into the BeforeUpdate of various controls to ask for
a user decision about whether to continue or cancel. In one case, I need to
pop up a report so that the user can make his decision based on the content
of the report. I got this far:
If <Conditions> Then
If MsgBox("Review report?", vbExclamation + vbYesNo) = vbYes Then
DoCmd.OpenReport "<ReportName>", acViewPreview
If MsgBox("Cancel entry?", vbExclamation + vbYesNo) = vbYes Then
ShippingID.Undo
Cancel = True
End if
End If
End If
When the report opens, execution continues on to the next MsgBox, and the
user cannot review (zoom, change pages) the report until AFTER answering the
next MsgBox. How can I let the user see/zoom the report before popping up the
next MsgBox? Can I embed a control on the report itself?
a user decision about whether to continue or cancel. In one case, I need to
pop up a report so that the user can make his decision based on the content
of the report. I got this far:
If <Conditions> Then
If MsgBox("Review report?", vbExclamation + vbYesNo) = vbYes Then
DoCmd.OpenReport "<ReportName>", acViewPreview
If MsgBox("Cancel entry?", vbExclamation + vbYesNo) = vbYes Then
ShippingID.Undo
Cancel = True
End if
End If
End If
When the report opens, execution continues on to the next MsgBox, and the
user cannot review (zoom, change pages) the report until AFTER answering the
next MsgBox. How can I let the user see/zoom the report before popping up the
next MsgBox? Can I embed a control on the report itself?