Originariamente inviato da binos1979
strsql = ("select [utente],negozio,tipo,quantitativo,prezzototale,motivazion e,ID from acquisti where year(DATA)=" & dataevent.Year & " and day(DATA)=" & dataevent.Day & " and month(DATA)=" & dataevent.Month & " ")
Dim objCommand As New OleDbCommand(strsql, objConn)
areader = objCommand.ExecuteReader()
ù

questo tip è utile se utilizzi access

se devi fare una select in un campo data fai cosi'

strsql="select * from tabella where campodata=cdate('" & data & "')" in access funziona bene in quanto la funzione cdate ti converte in un formato compatibile con access la data che gli stai passando