I have a table in MSSQL that has several columns beginning with numbers i.e.
1A
1B
1C
In MSSQL (2000) design view it places brackets around the column names i.e. [1A].
I can`t change these column names as it is an old system, but I do need to hook this up to a webpage but I am struggling to update to these fields
gives the error 'Item cannot be found in the collection corresponding to the requested name or ordinal'
and
gives the error '[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '1'. '
Does anyone know of a way around this?
Thanks
1A
1B
1C
In MSSQL (2000) design view it places brackets around the column names i.e. [1A].
I can`t change these column names as it is an old system, but I do need to hook this up to a webpage but I am struggling to update to these fields
Code:
rs.Fields("[1A]")=request.form("1A")
rs.Update
gives the error 'Item cannot be found in the collection corresponding to the requested name or ordinal'
and
Code:
rs.Fields("1A")=request.form("1A")
rs.Update
gives the error '[Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: Incorrect syntax near '1'. '
Does anyone know of a way around this?
Thanks