Report not showing up

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
 
G

g

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top