80040E14 error resolution for ASP code

Source: Internet
Author: User
Tags insert reserved access database
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 ')



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.