Report not showing up

  • Thread starter Thread starter g
  • Start date Start date
G

g

Hi experts,

I have a form with activeX snapshot viewer with it to view my report. Before
everything works perfectly fine not until now. The report is still generating
but it is not showing up in my viewer anymore. What do you think is the
problem here.

Thank you.

My code:

Function Report_Click()
On Error GoTo Err_Command1_Click
Dim strName As String
Dim strPath As String
Dim strOutputFormat As String
Dim ReportTitle As Variant
strName = "ReportName"
strPath = "\\server\DeptFolder\Report1.snp"
strOutputFormat = "Snapshot Format"
DoCmd.OutputTo acOutputReport, strName, strOutputFormat, strPath, Autostart
Forms!MainForm.ActiveXName.SnapshotPath = "\\server\DeptFolder\Report1.snp"

Exit_Command1_Click:
Exit Function

Err_Command1_Click:
MsgBox Err.Description
Resume Exit_Command1_Click
End Function


Thank you
 
Hi again, pls ignore my question. I figured it out the problem, I compiled my
code and see the problem. thanks
 
Back
Top