|
L
|
laboria author 10/29/2004 |
|
Please assist me with this issue. I have been waiting a few days now. |
|
|
|
Sergey Kornilov admin 10/29/2004 |
|
Here is how you can do this on the Edit page (..._edit.asp) Next if Right(strSQL,2)= ", " then strSQL = Left(strSQL, Len(strSQL)-2) '1 strSQL = strSQL & ", UserIDField = '" & Session("UserID") & "'"
|
|
|
L
|
laboria author 11/1/2004 |
|
The code works great on the edit page, but the add page is giving me syntax error in the insert to... Next if Right(strFields,2)=", " then strFields = Left(strFields, Len(strFields)-2) if Right(strValues,2)=", " then strValues = Left(strValues, Len(strValues)-2) strSQL = strSQL & ", Tech = '" & Session("UserID") & "'"
|
|
|
|
Sergey Kornilov admin 11/4/2004 |
|
Try the following: Next if Right(strFields,2)=", " then strFields = Left(strFields, Len(strFields)-2) if Right(strValues,2)=", " then strValues = Left(strValues, Len(strValues)-2) strFields = strFields & ", Tech" strValues = strValues & ", '" & Session("UserID") & "'" |
|