I keep getting this error when I submit any ideas on what is causing the error
Syntax error (missing operator) in query expression ''''WHERE Jobnumber = '2940'
Here is the update code:
<%
If Request("Submit") <> "" Then
varRecIDs = Replace(Request("hidRecIDs"), "*", "") ' remove all the asterisks, to create a list like this: 2, 5, 8, 9 etc.
varRecArray = Split(varRecIDs, ", ") ' Create an array, wich will contain just the IDs of the records we need to update
For i = 0 to Ubound(varRecArray) ' Loop trough the array
%>
<%
if(Request("SelectAssignTranid" & varRecArray(i)) <> "") then commUpdate__SelectAssignTranid = Request("SelectAssignTranid" & varRecArray(i))
if(Request("checkboxIPriorityLevel" & varRecArray(i)) <> "") then commUpdate__checkboxIPriorityLevel = Request("checkboxIPriorityLevel" & varRecArray(i))
if(Request("SelectState" & varRecArray(i)) <> "") then commUpdate__SelectState = Request("SelectState" & varRecArray(i))
if(Request("hidRecID" & varRecArray(i)) <> "") then commUpdate__varRecID = Request("hidRecID" & varRecArray(i))
%>
<%
set commUpdate = Server.CreateObject("ADODB.Command")
commUpdate.ActiveConnection = "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\program files\voiceware server\voicedoc.mdb"
commUpdate.CommandText = "UPDATE Dictations SET AssignTranID = '" & Replace(commUpdate__SelectAssignTranid, "'", "''") & "', iPriorityLevel = '" & Replace(commUpdate__checkboxIPriorityLevel, "'", "''") & "''WHERE Jobnumber = '" & Replace(commUpdate__varRecID, "'", "''") & ""
commUpdate.CommandType = 1
commUpdate.CommandTimeout = 0
commUpdate.Prepared = true
commUpdate.Execute()
%>
<%
Next
Response.Redirect "manage1.asp"
End If
%>
If knowledge were power I would be a AAA battery!
Syntax error (missing operator) in query expression ''''WHERE Jobnumber = '2940'
Here is the update code:
<%
If Request("Submit") <> "" Then
varRecIDs = Replace(Request("hidRecIDs"), "*", "") ' remove all the asterisks, to create a list like this: 2, 5, 8, 9 etc.
varRecArray = Split(varRecIDs, ", ") ' Create an array, wich will contain just the IDs of the records we need to update
For i = 0 to Ubound(varRecArray) ' Loop trough the array
%>
<%
if(Request("SelectAssignTranid" & varRecArray(i)) <> "") then commUpdate__SelectAssignTranid = Request("SelectAssignTranid" & varRecArray(i))
if(Request("checkboxIPriorityLevel" & varRecArray(i)) <> "") then commUpdate__checkboxIPriorityLevel = Request("checkboxIPriorityLevel" & varRecArray(i))
if(Request("SelectState" & varRecArray(i)) <> "") then commUpdate__SelectState = Request("SelectState" & varRecArray(i))
if(Request("hidRecID" & varRecArray(i)) <> "") then commUpdate__varRecID = Request("hidRecID" & varRecArray(i))
%>
<%
set commUpdate = Server.CreateObject("ADODB.Command")
commUpdate.ActiveConnection = "Driver={Microsoft Access Driver (*.mdb)};DBQ=c:\program files\voiceware server\voicedoc.mdb"
commUpdate.CommandText = "UPDATE Dictations SET AssignTranID = '" & Replace(commUpdate__SelectAssignTranid, "'", "''") & "', iPriorityLevel = '" & Replace(commUpdate__checkboxIPriorityLevel, "'", "''") & "''WHERE Jobnumber = '" & Replace(commUpdate__varRecID, "'", "''") & ""
commUpdate.CommandType = 1
commUpdate.CommandTimeout = 0
commUpdate.Prepared = true
commUpdate.Execute()
%>
<%
Next
Response.Redirect "manage1.asp"
End If
%>
If knowledge were power I would be a AAA battery!