P
p935754
I have a report named "eta1" with an independant subreport named "s_etat1"
I would like to filter my report with a filter that i build but I've got
error message when using the following code
Private Sub Commande0_Click()
On Error GoTo Err_Commande0_Click
Dim stDocName As String
Dim strFiltre As String
' Construction du filtre
strga = "A"
strFiltre = "([nom]='" & strga & "')"
' Ouverture formulaire
stDocName = "etat"
DoCmd.OpenReport stDocName, acPreview
' Lancement du filtre
With Reports![etat]![S_etat].Report
..Filter = strFiltre
..FilterOn = True
End With
Thank you for your help
I would like to filter my report with a filter that i build but I've got
error message when using the following code
Private Sub Commande0_Click()
On Error GoTo Err_Commande0_Click
Dim stDocName As String
Dim strFiltre As String
' Construction du filtre
strga = "A"
strFiltre = "([nom]='" & strga & "')"
' Ouverture formulaire
stDocName = "etat"
DoCmd.OpenReport stDocName, acPreview
' Lancement du filtre
With Reports![etat]![S_etat].Report
..Filter = strFiltre
..FilterOn = True
End With
Thank you for your help