Access database reserved words for the most careful use

Source: Internet
Author: User
Tags reserved

Today has been looking for solutions to the following errors, the final method surprised me Ah, I spent an afternoon, whining ....

A simple INSERT statement like the following, always prompt the following error,


It is also OK to put the statement in the Access background database, no problem, normal can be inserted.

Insert into Member (Companyname,address,email,phone,person,audit,Password, CreateDate) VALUES (@CompanyName , @Address, @Email, @Phone, @Person, @Audit, @Password, @CreateDate)

If the suspicion is the Oledbhelper class has a problem, but the other words of the insertion is possible ah, in the online search for a lot of stickers, did not say the point on, just a sudden search to a netizen said access to the reserved word with the need for brackets , if suddenly.

If you change the statement to read as follows:

Insert into Member (Companyname,address,email,phone,person,audit, [Password], CreateDate) VALUES (@ CompanyName, @Address, @Email, @Phone, @Person, @Audit, @Password, @CreateDate)

Successful execution!


Access database reserved words for the most careful use

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.