preview mode, when I try to print it through file/print what I get printed is
the form not the report, if I ask to print a second report i get the previous
report printed or I´m asked to enter a parameter (f.e. the year) necessary to
filter the report, even though I Have already entered.
This problem also affects old reports that were working OK, and from some
time to now are doing it well.
Here is the code behind the button:
"Private Sub Comando119_Click()
On Error GoTo Err_Comando119_Click
Dim stDocName As String
stDocName = "RESOCONTO singolo"
stLinkCriteria = "[CLIENTE]=" & "´" & Me![CLIENTE] & "´"
DoCmd.OpenReport stDocName, acPreview, , stLinkCriteria
Exit_Comando119_Click:
Exit Sub
Err_Comando119_Click:
MsgBox Err.Description
Resume Exit_Comando119_Click
End Sub"
Thanks in advance