A
Andy
I created the command button using the command button wizard. My "Preview
Report" command button on my form quit working and I am still trying to
figure out what happened. In the meantime, I am curious where the Access
coding is that appears inthe message box upon the error occurring. When the
error occurs, I get a message box that says "The OpenReport action was
cancelled. OK" I know I can set that message myself but where is this
"automatic/already coded by Microsoft" message?
Thanks.
Andy
Private Sub cmdPreviewReport_Click()
On Error GoTo Err_cmdPreviewReport_Click
Dim stDocName As String
stDocName = "repCostTotalbyOPR"
docmd.OpenReport stDocName, acPreview
Exit_cmdPreviewReport_Click:
Exit Sub
Err_cmdPreviewReport_Click:
MsgBox Err.Description
Resume Exit_cmdPreviewReport_Click
Report" command button on my form quit working and I am still trying to
figure out what happened. In the meantime, I am curious where the Access
coding is that appears inthe message box upon the error occurring. When the
error occurs, I get a message box that says "The OpenReport action was
cancelled. OK" I know I can set that message myself but where is this
"automatic/already coded by Microsoft" message?
Thanks.
Andy
Private Sub cmdPreviewReport_Click()
On Error GoTo Err_cmdPreviewReport_Click
Dim stDocName As String
stDocName = "repCostTotalbyOPR"
docmd.OpenReport stDocName, acPreview
Exit_cmdPreviewReport_Click:
Exit Sub
Err_cmdPreviewReport_Click:
MsgBox Err.Description
Resume Exit_cmdPreviewReport_Click