A
Alain
Hi ,
I would like to know on how to fix this problem when I open a report with a
criteria as a filter,
"The Action or Method requires a ReportName Argument" is showing at the
docmd.openreport
Here is the code I use on my form
Private Sub btnGenerateReport_Click()
If cboDivision.Value <> "" Then
DataExchange.SetHeading cboDivision.Value
DoCmd.OpenReport rptRentRoll, acViewPreview
DoCmd.Maximize
Else
MsgBox "Veuillez sélectionner une bannière de la liste déroulante."
End If
End Sub
and here is the code I use on my report
Me.FilterOn = True
Me.Filter = "Division like '" & Forms!ReportGenerator!cboDivision.Value
& "*'"
TIA
Alain
I would like to know on how to fix this problem when I open a report with a
criteria as a filter,
"The Action or Method requires a ReportName Argument" is showing at the
docmd.openreport
Here is the code I use on my form
Private Sub btnGenerateReport_Click()
If cboDivision.Value <> "" Then
DataExchange.SetHeading cboDivision.Value
DoCmd.OpenReport rptRentRoll, acViewPreview
DoCmd.Maximize
Else
MsgBox "Veuillez sélectionner une bannière de la liste déroulante."
End If
End Sub
and here is the code I use on my report
Me.FilterOn = True
Me.Filter = "Division like '" & Forms!ReportGenerator!cboDivision.Value
& "*'"
TIA
Alain