MetroToday
MIS
I have two date fields in my database which are called Datefrom and Dateto.
I am quering this database to retrieve a date that is greater than datefrom and less than dateto. So its in the middle of these two dates. I am all messed up with the syntax. Below is the SQL code.
SQLtxt = "SELECT * FROM tbldata WHERE DateFrom < # " & Request.Form("Date" & "#" AND WHERE Dateto > # " & Request.Form("Date" & "#"
Someone help me fix up this code. PLEASE!!!
I am quering this database to retrieve a date that is greater than datefrom and less than dateto. So its in the middle of these two dates. I am all messed up with the syntax. Below is the SQL code.
SQLtxt = "SELECT * FROM tbldata WHERE DateFrom < # " & Request.Form("Date" & "#" AND WHERE Dateto > # " & Request.Form("Date" & "#"
Someone help me fix up this code. PLEASE!!!