JonathanG6SWJ
Programmer
I have a for next loop that writes a sql update to db.
I am having problems with the syntax of incrementing a request statement variable.
RadioCount=1
For xx = intFirstRec to intLastRec
strSQL=strSQL + "' ,intBScore ='" & Request("QB1")
..the above line works fine but I want to increment the variable name ..QA1 / QA2 ..QA8
strSQL="UPDATE tblResultsData SET intAScore = '" & Request('"QA"& RadioCount')
..the line above does not work!!!
What shoud the syntax be??
strSQL=strSQL + "' WHERE intCompetency_obj_no = " & xx &";"
RadioCount=RadioCount+1
jConn.Execute (strSQL)
Next
jConn.Close
set jConn = Nothing
Many thanks in advance
Jonathan
I am having problems with the syntax of incrementing a request statement variable.
RadioCount=1
For xx = intFirstRec to intLastRec
strSQL=strSQL + "' ,intBScore ='" & Request("QB1")
..the above line works fine but I want to increment the variable name ..QA1 / QA2 ..QA8
strSQL="UPDATE tblResultsData SET intAScore = '" & Request('"QA"& RadioCount')
..the line above does not work!!!
What shoud the syntax be??
strSQL=strSQL + "' WHERE intCompetency_obj_no = " & xx &";"
RadioCount=RadioCount+1
jConn.Execute (strSQL)
Next
jConn.Close
set jConn = Nothing
Many thanks in advance
Jonathan