Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with the column name which is a reserved word 1

Status
Not open for further replies.

poporogue

Programmer
Dec 20, 2002
16
HK
there is one columne name in the database called "section", and when i use a sql to run a query in vba, it occurs errors. i found that "section" is a reserved word in vba. so when i change the "section" to "section1", there is no errors then.
the problem is, i could not change the colume name from "section" to "section1" because there is already a system running with this db. so i can't change the column name, it will affect the running system.

so what can i do to solve this problem?
 
Hi poporogue,

In your SQL Statement try placing Section in Square Brackets like this: [Section].

Just a thought.

Bill
 
oh~~thx
you are so helpful.
my problem is solved~
thx again
 
poporogue,

Give Bill a star. That's what they're there for. Just click on "Mark this post as a helpful/expert post!"

Jeremy

==
Jeremy Wallace
AlphaBet City Dataworks
Affordable Development, Professionally Done

Please post in the appropriate forum with a descriptive subject; code and SQL, if referenced; and expected results. See thread181-473997 for more pointers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top