R
RoadKyng
Quesiton on using parameters in an Update SQL statement.
Trying to update a table in Access 2003 from an ASP.NET form using a SQL
statement. Example as follows
"UPDATE [My tbl] SET (Field1, Field2, Field3, Field4) VALUES ( 'data1',
'data2', 'data3', 'data4') WHERE RecordID = " & txtRecordID.Text
I get a Syntax error with no idea on where it is. I have tried plugging this
in to the Access database as a Query and get the same - Syntax Error.
Interestingly, this method works fine as an
"INSERT INTO (Field1, Field2, Field3, Field4) VALUES ( 'data1', 'data2',
'data3', 'data4')"
Trying to update a table in Access 2003 from an ASP.NET form using a SQL
statement. Example as follows
"UPDATE [My tbl] SET (Field1, Field2, Field3, Field4) VALUES ( 'data1',
'data2', 'data3', 'data4') WHERE RecordID = " & txtRecordID.Text
I get a Syntax error with no idea on where it is. I have tried plugging this
in to the Access database as a Query and get the same - Syntax Error.
Interestingly, this method works fine as an
"INSERT INTO (Field1, Field2, Field3, Field4) VALUES ( 'data1', 'data2',
'data3', 'data4')"