Click to See Complete Forum and Search --> : Update Database


ldoodle
01-16-2006, 08:03 AM
Nice easy one (if possible).

How would I put the following code on one line?

objConn.Execute "UPDATE [tblStyleSheet]" & " SET [LoginDate] = '" & strDate & "'" & " WHERE [UserName] = '" & strUserName & "';"
objConn.Execute "UPDATE [tblStyleSheet]" & " SET [LoginTime] = '" & strTime & "'" & " WHERE [UserName] = '" & strUserName & "';"

Thanks very much/...

chrismartz
01-16-2006, 11:08 AM
objConn.Execute "UPDATE [tblStyleSheet] SET [LoginDate] = '" & strDate & "', [LoginTime] = '" & strTime & "' WHERE [UserName] = '" & strUserName & "';"

Bullschmidt
01-23-2006, 08:38 PM
And for a related link:

Classic ASP Design Tips - Search Criteria on Multiple Fields
http://www.bullschmidt.com/devtip-searchcriteria.asp