Hi,
I am getting the following error.
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
On the previous page, I have an INPUT variable called LastLogin. I want to put the value of LastLogin into my table called Researcher. The code works OK without LINE 3 but the thing is, it is updating the LastLogin column on the 1st line only. I have 15 different person in Researcher and I want LastLogin to be updated for the correct Researcher. What is wrong with my Filter statement? Thanks.
1 - Dim rsLG
2 - Set rsLG = Server.CreateObject("ADODB.Recordset")
3 - rsLG.Filter = "username = " & Request("username")
4 - rsLG.Open "Researcher", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable
5 - rsLG("LastLogin") = Request.Form("LastLogin")
6 - rsLG.Update
7 - rsLG.Close
8 - Set rsLG = Nothing
I am getting the following error.
ADODB.Recordset error '800a0bb9'
Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.
On the previous page, I have an INPUT variable called LastLogin. I want to put the value of LastLogin into my table called Researcher. The code works OK without LINE 3 but the thing is, it is updating the LastLogin column on the 1st line only. I have 15 different person in Researcher and I want LastLogin to be updated for the correct Researcher. What is wrong with my Filter statement? Thanks.
1 - Dim rsLG
2 - Set rsLG = Server.CreateObject("ADODB.Recordset")
3 - rsLG.Filter = "username = " & Request("username")
4 - rsLG.Open "Researcher", objConn, adOpenForwardOnly, adLockOptimistic, adCmdTable
5 - rsLG("LastLogin") = Request.Form("LastLogin")
6 - rsLG.Update
7 - rsLG.Close
8 - Set rsLG = Nothing