1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| Private Sub Apercuetat_Click()
On Error GoTo Err_Apercuetat_Click
Dim strWhere As String If Me.communeliste.ItemsSelected.Count > 0 Then 'ma liste est renseignée
strWhere = "Commune like """ & Me.communeliste & """"
End If
if me.tipeliste.item..... then
strWhere = IIf(Len(strWhere) > 0, " AND ", " ") & "TIPE = " & Me.tipeliste
End If
Dim stDocName As String
stDocName = "Client imprimer"
DoCmd.OpenReport stDocName, acPreview
Exit_Apercuetat_Click:
Exit Sub
Err_Apercuetat_Click:
MsgBox Err.Description
Resume Exit_Apercuetat_Click |
Partager