For a long time did not write ASP code, today in a simple message this, there was a mistake:
Microsoft Office Access Database Engine error ' 80040e14 '
Syntax error in Insert into statement.
On the Internet to check the information, only to know that the error is caused by a reason:
1 Use the reserved word as the name. Most databases have a set of reserved words. For example, "name" is a reserved word and therefore cannot be used for column names in the database.
2 A special character is used in the name. Examples of special characters include:. / * : ! # &-?
3 Use a space in the column name.
4 This error also occurs when an input mask is defined for an object in the database and the inserted data does not match the mask.
There are two ways to solve this problem:
1 Avoid using reserved words such as "name", "date", "where", "select", and "level" when specifying column names in the database. Also, clear spaces and special characters
2 When the field name is the same as the reserved word, we can use [] to differentiate in the SQL statement.
Insert into messages ([names],qq,content) VALUES (' webjxcom ', ' 76312395 ', ' My success is inseparable from everyone's support ')