ciao Giuseppe,
Buona Pasqua anche a te innanzi tutto.
Imposta due campi calcolati in una query che diventerà il recordSource della tua form :
txtMonth: Format$([dataordine];"m") per restituire il mese
txtYear: Format$([dataordine];"aaaa") per restituire l'anno
nell'evento click del command button per filtrare il mese avrai :
With Me
.Filter = "txtMonth='" & Format(VBA.Date, "m") & "'"
.FilterOn = True
End With
ovviamente filtri il mese indipendentemente dall'anno.
nell'evento click per filtrare l'anno :
With Me
.Filter = "txtyear='" & Format(VBA.Date, "yyyy") & "'"
.FilterOn = True
End With
ciao, Sandro.