I have the code to open the report here:
VB Code:
Private Sub RunReport(stTableName As String)
Dim crxApp As New CRAXDDRT.Application
Dim crxReport As CRAXDDRT.Report
Dim crxDatabaseTables As CRAXDDRT.DatabaseTables
Dim crxDatabaseTable As CRAXDDRT.DatabaseTable
Dim crxDatabase As CRAXDDRT.Database
Dim crxParm As CRAXDDRT.ParameterValues
Dim crxSubReport As CRAXDDRT.Report
Dim ReportName As String
ReportName = "\\Server\Reports\PL.rpt"
Set crxReport = crxApp.OpenReport(ReportName)
With crView
.ReportSource = crxReport
.ViewReport
While .IsBusy
DoEvents
Wend
.Zoom "100"
.Visible = True
End With
End Sub
I just want to programmatically change the name of the table that the report is looking at if that is possible...