I have a table where I have to refer to the column names through some varibales. Everything works fine for almost everything (yeah, almost is alway the problem...) but when i try to use the variable name to perform a calculation, i get a type mismatch error, meaning that the statement is considered litteraly and not by the specific column value.
Example :
By the way, I get the error exactly at the sql line position, so that I cannot response.write the statement..
Any way to get around this ??
THANKS !!
Example :
Code:
Sql="UPDATE MyTable SET "& ColumnVariable & "=" & ColumnVariable+1 & " WHERE SomeField=SomeValue"
By the way, I get the error exactly at the sql line position, so that I cannot response.write the statement..
Any way to get around this ??
THANKS !!