A
Amateur
Dear Sirs,
I have three reports which I would like to preview before printing.
I did the following code for the command button:
Private Sub Command65_Click()
On Error GoTo Err_Command65_Click
Dim stDocName As String
stDocName = "endofmonthstatementbie30preport"
DoCmd.OpenReport stDocName, acPreview
stDocName = "endofmonthstatementbie30"
DoCmd.OpenReport stDocName, acPreview
stDocName = "endofmonthstatementclientsnonpoolPDF"
DoCmd.OpenReport stDocName, acPreview
Exit_Command65_Click:
Exit Sub
Err_Command65_Click:
MsgBox Err.Description
Resume Exit_Command65_Click
End Sub
It's working, but the preview is opening behind my main switchboard. It
should open over the main switchbord like a pop-up.
Can someone tell me how to change the code?
Thanks
Klaus
I have three reports which I would like to preview before printing.
I did the following code for the command button:
Private Sub Command65_Click()
On Error GoTo Err_Command65_Click
Dim stDocName As String
stDocName = "endofmonthstatementbie30preport"
DoCmd.OpenReport stDocName, acPreview
stDocName = "endofmonthstatementbie30"
DoCmd.OpenReport stDocName, acPreview
stDocName = "endofmonthstatementclientsnonpoolPDF"
DoCmd.OpenReport stDocName, acPreview
Exit_Command65_Click:
Exit Sub
Err_Command65_Click:
MsgBox Err.Description
Resume Exit_Command65_Click
End Sub
It's working, but the preview is opening behind my main switchboard. It
should open over the main switchbord like a pop-up.
Can someone tell me how to change the code?
Thanks
Klaus