Una famiglia di sistemi di gestione per database relazionali di Microsoft progettati per semplificare l'uso.
ciao Giuseppe,
devi concaternare la stringa che compone il filtro come detto in precedenza.
Prova come segue :
Sub setFilter()
Dim strFilter As String
With Me
If Len(.cboAnnoScelta & vbNullString) > 0 Then strFilter = strFilter & " and txtyear='" & CStr(.cboAnnoScelta) & "'"
If Len(.cboMeseScelta & vbNullString) > 0 Then strFilter = strFilter & " and txtmonth='" & Me.cboMeseScelta.Column(1) & "'"
If Len(strFilter) > 0 Then
.Filter = "1+1" + strFilter
Else
.Filter = vbNullString
End If
.FilterOn = True
End With
End Sub
Private Sub cboAnnoScelta_AfterUpdate()
setFilter
End Sub
Private Sub cboMeseScelta_AfterUpdate()
setFilter
End Sub
ciao, Sandro.