You need to replace all the code in the Form_frmProvolone module with the following:
Code:
Option Compare Database
Option Explicit
Dim strFiltro As String
Private Sub cboJob_AfterUpdate()
FiltraDati
End Sub
Private Sub cboName_AfterUpdate()
FiltraDati
End Sub
Private Sub Form_Load()
FiltraDati
End Sub
Private Sub noFilter_Click()
Me.cboJob = Null
Me.cboName = Null
FiltraDati
End Sub
Private Sub stmpProvolone_Click()
DoCmd.OpenReport "RptProvolone", acViewPreview, , strFiltro
End Sub
Private Sub FiltraDati()
strFiltro = ""
If Len(Trim(Me.cboJob & "")) > 0 Then strFiltro = "[Job] Like ""*" & Me.cboJob & "*"""
If Len(Trim(Me.cboName & "")) > 0 Then strFiltro = strFiltro & IIf(strFiltro = "", "", " AND ") & "[Name] Like ""*" & Me.cboName & "*"""
Me.Filter = strFiltro
If strFiltro = "" Then
Me.FilterOn = False
Else
Me.FilterOn = True
End If
Me.stmpProvolone.Visible = Not IsNull(Me.ID)
End Sub