hello! i want to display all the transactions within a month...but an error occured says...
data type mismatch in criteria expression...pls help me..here is my initial code...
If rs.State = adStateOpen Then rs.Close
rs.Open "Select * from tblsupplier where date between '" & DTPicker1.Value & "' And '" & DTPicker2.Value & "';", cn, adOpenKeyset, adLockPessimistic
While Not rs.EOF
With frmlist.ListView1.ListItems.Add(, , rs!supplier)
With .ListSubItems
.Add , , rs!nmesup
.Add , , rs!category
.Add , , rs!nmeitem
.Add , , rs!quantity
.Add , , rs!spec
.Add , , rs!amount
.Add , , rs!tamount
End With
End With
rs.MoveNext
Wend