Print Preview

  • Thread starter Thread starter Sheri
  • Start date Start date
S

Sheri

I create a form that has a 4 buttons at the top: new
report, find report, print preview and close form.
Everything work except the print preview, here is the
codes for that button:

Private Sub print_preview_button_Click()
On Error GoTo Err_print_preview_button_Click

Dim stDocName As String

stDocName = "macSynchReportToForm"
DoCmd.RunMacro stDocName

Exit_print_preview_button_Click:
Exit Sub

Err_print_preview_button_Click:
MsgBox Err.Description
Resume Exit_print_preview_button_Click

End Sub
Tell me what I did did wrong
 
Sheri, it is the macro that is doing the actual printing
action, it appears the problem is with the macro.
Hope this gets you going. Fons
 
Back
Top