SELECT campo1,campo2 FROM tabela WHERE DATA BETWEEN #" & format(dtpicker.value,"YYYY/MM/DD") & "# AND #" & FORMAT(dtpicker2.value,"YYYY/MM/DD") & "#"
SELECT campo1,campo2 FROM tabela WHERE DATA BETWEEN #" & format(TXTDATA.TEXT,"YYYY/MM/DD") & "# AND #" & FORMAT(TXTDATA2.TEXT,"YYYY/MM/DD") & "#"
t+