strSQL = "Select * from tblHns where Datediff('d'," & txtDate & ",[Date]) >=30"
Set rstHns = dbs.OpenRecordset(strSQL)
I get an error of type mismatch
The field Date is of type Date/Time and format of Short Date
The field txtDate is a textbox on a form with a format of Short Date.
Please help, Thanks.
Set rstHns = dbs.OpenRecordset(strSQL)
I get an error of type mismatch
The field Date is of type Date/Time and format of Short Date
The field txtDate is a textbox on a form with a format of Short Date.
Please help, Thanks.