| T O P I C R E V I E W |
| Carefree |
Posted - 05 October 2010 : 10:35:37 Here's a spot of code for a registrar's office, there's a syntax error in the SQL format for both update/add (all fields are text). Anyone see the error?
|
| 4 L A T E S T R E P L I E S (Newest First) |
| HuwR |
Posted - 05 October 2010 : 13:50:36 no worries we all have those moments |
| Carefree |
Posted - 05 October 2010 : 12:08:24 Just color me brain-dead. lol, thanks. |
| HuwR |
Posted - 05 October 2010 : 11:58:02 1. you do not use SET in an INSERT statement.
2. in an UPDATE you don't use that format, an update statement look like the following
UPDATE TABLE SET field1=value,field2=value2 ..... |
| Carefree |
Posted - 05 October 2010 : 11:24:04 Both of the strSQL lines result in the same error.
Example output from update strSQL:
quote:
UPDATE REGISTRARS SET (Reg_NameL, Reg_NameF, Reg_NameM, Reg_SSAN, Reg_Code, Reg_PW) VALUES ('CTest','CTest','R','123456789','WC001','pass') WHERE Reg_Code = 'WC001'
Error Message: Microsoft JET Database Engine error '80040e14'
Syntax error in UPDATE statement.
|
|
|