precimonito
Programmer
Here's my problem:
Using an ASP page, I recover a recordset and one of the fields I get is a date. I store that date in a variable and then when I try to run an update clause using that date in the where, the update never runs.
temp = 0
val1 = objrecordset.fields("col1"
val3 = objrecordset.fields("col3" 'this is the date
strSQL = "UPDATE TABLE1 SET col2 = 200 where (col1 = "
strSQL = strSQL & val1 & " AND col3 = '" & val3 & "');"
objconnection.execute strSQL, temp
col2 doesn't get to be 200 and temp is still 0
I don't know if I'm comparing the date in the wrong way
When I show val3 on my page, the date is fine so that's not the problem. If I run the clause only using col1 in the WHERE, I have no problem and the update gets done, so the problem is just when I want to compare the date.
Using an ASP page, I recover a recordset and one of the fields I get is a date. I store that date in a variable and then when I try to run an update clause using that date in the where, the update never runs.
temp = 0
val1 = objrecordset.fields("col1"
val3 = objrecordset.fields("col3" 'this is the date
strSQL = "UPDATE TABLE1 SET col2 = 200 where (col1 = "
strSQL = strSQL & val1 & " AND col3 = '" & val3 & "');"
objconnection.execute strSQL, temp
col2 doesn't get to be 200 and temp is still 0
I don't know if I'm comparing the date in the wrong way
When I show val3 on my page, the date is fine so that's not the problem. If I run the clause only using col1 in the WHERE, I have no problem and the update gets done, so the problem is just when I want to compare the date.