A
Alan
This is part of my code
Sub PrintReports(ReportView As AcView)
' This procedure used in Preview_Click and Print_Click Sub procedures.
' Preview or print report selected in the ReportToPrint option group.
' Then close the Print Sales Reports Dialog form.
Dim strReportName As String
Dim strReportFilter As String
Dim lOrderCount As Long
' Determine report filtering
If Nz(Me.cbReportFilter) <> "" Then
strReportFilter = "([SalesGroupingField] = """ & Me.cbReportFilter &
""")"
End If
' Determine reporting time frame
Select Case Me.Listfilter
Case ByYear
strReportName = "Yearly Sales Report"
lOrderCount = DCountWrapper("*", "Sales Analysis", "[Posting Date
Year Financial]=" & Me.cbYear)
Case ByQuarter
strReportName = "Quarterly Sales Report"
lOrderCount = DCountWrapper("*", "Sales Analysis", "[Posting Date
Year Financial]=" & Me.cbYear & " AND [Quarter]=" & Me.cbQuarterly)
Every time i click the preview button on my form i get and error
compile erro
method or data member not found
but it work well for Yearly Sales Report, it just highlight
Quarterly sales report.
An there is a combo box name cbYear Correct spelling
any suggstions
Sub PrintReports(ReportView As AcView)
' This procedure used in Preview_Click and Print_Click Sub procedures.
' Preview or print report selected in the ReportToPrint option group.
' Then close the Print Sales Reports Dialog form.
Dim strReportName As String
Dim strReportFilter As String
Dim lOrderCount As Long
' Determine report filtering
If Nz(Me.cbReportFilter) <> "" Then
strReportFilter = "([SalesGroupingField] = """ & Me.cbReportFilter &
""")"
End If
' Determine reporting time frame
Select Case Me.Listfilter
Case ByYear
strReportName = "Yearly Sales Report"
lOrderCount = DCountWrapper("*", "Sales Analysis", "[Posting Date
Year Financial]=" & Me.cbYear)
Case ByQuarter
strReportName = "Quarterly Sales Report"
lOrderCount = DCountWrapper("*", "Sales Analysis", "[Posting Date
Year Financial]=" & Me.cbYear & " AND [Quarter]=" & Me.cbQuarterly)
Every time i click the preview button on my form i get and error
compile erro
method or data member not found
but it work well for Yearly Sales Report, it just highlight
Quarterly sales report.
An there is a combo box name cbYear Correct spelling
any suggstions