Hi
I am using following lines to obtain information from a table but when I run, it diasplays following error
data type mismatch in criteria expression
bill_date is date/time type field in bill_table. Help me to sort out the problem please.
In fact I want to retrieve data for a specified date or BETWEEN dates.
Set rsSrch = New ADODB.Recordset
SqlStr = "SELECT * FROM Bill_Table WHERE bill_date >= '" &
Format(Text4.Text, "dd-mm-yyyy"
& "'"
rsSrch.Open SqlStr, ConnEdit, adOpenStatic, adLockOptimistic
I am using following lines to obtain information from a table but when I run, it diasplays following error
data type mismatch in criteria expression
bill_date is date/time type field in bill_table. Help me to sort out the problem please.
In fact I want to retrieve data for a specified date or BETWEEN dates.
Set rsSrch = New ADODB.Recordset
SqlStr = "SELECT * FROM Bill_Table WHERE bill_date >= '" &
Format(Text4.Text, "dd-mm-yyyy"
rsSrch.Open SqlStr, ConnEdit, adOpenStatic, adLockOptimistic