I am trying to tell my OpenReport what report name to use.
The answer lies in the underlying query which has a field called ReportName.
Here is what i have so far. The error says it cannot find the field noted in my expression.
It must mean my query field ReportName.
FYI, for a particular record, the answer inside the query reportname is rptTicketInd.
For another record, it could be rptTicketSplinter. In other words, the query field reportName
could have a different rpt to use.
Thanks for looking at this.
Private Sub cmd1102_Click()
Dim sReportName As String
sReportName = [ReportName]
DoCmd.OpenReport sReportName, acViewPreview
End Sub
The answer lies in the underlying query which has a field called ReportName.
Here is what i have so far. The error says it cannot find the field noted in my expression.
It must mean my query field ReportName.
FYI, for a particular record, the answer inside the query reportname is rptTicketInd.
For another record, it could be rptTicketSplinter. In other words, the query field reportName
could have a different rpt to use.
Thanks for looking at this.
Private Sub cmd1102_Click()
Dim sReportName As String
sReportName = [ReportName]
DoCmd.OpenReport sReportName, acViewPreview
End Sub