Microsoft Query - Entering Column Names with Blanks

R

Robert Meade

I have used Microsoft Query with Excel 2003 for some time now, and
until today I have been able to enter columns names with blanks in
them using [ ]'s.
For instance:
Select [First Name], [Favorite Food]
from master..foodtable

I get an "Incorrect Syntax Near Food" error, and the help is helpless
in this case.
Is anyone aware of some security "fix" that might be causing this
problem - I cannot edit existing queries.
Thanks!
Robert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top