Hello, I ran into a little problem.
I have a login page where the user enters his/her user name and his/her password. up to this point everything works well. Then there are two text boxes where you can enter a date for example 010106 to 013106 and here is where I run into the problem I would like to take what the user types in the text boxes and insert it in my SQL statement.
Would I have to do do this. my date fields are called dt1 and dt2
But this does not seem to work
I have a login page where the user enters his/her user name and his/her password. up to this point everything works well. Then there are two text boxes where you can enter a date for example 010106 to 013106 and here is where I run into the problem I would like to take what the user types in the text boxes and insert it in my SQL statement.
Would I have to do do this. my date fields are called dt1 and dt2
Code:
dim dt1, dt2
dt1= Request.Form("txtdt1")
dt2= Request.Form("txtdt2")
select username, userid, date From Users Where date BETWEEN "&dt1&" and "&dt2&" "
But this does not seem to work