Set RDStapno = DBStapno.OpenRecordset("select*from primanot WHERE (datfat)>=#" & format(dini,"yyyy/mm/dd")&"#")
Questa funzione è OK, mentre le altre suggerite non vanno; ma devo implementare con altri due controlli.
Come posso fare a mettere anche le variabili [and datfat<=Dfin and impreg>0]
Grazie per la gentile collaborazione