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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Spaces in Access column names

Status
Not open for further replies.

boggg1

Programmer
Oct 17, 2002
102
EU
Are there restrictions on column names in Access ?. In particular can I use a name with a space in it ?. You will have guessed that the data I want to use already has the column names with spaces. I am using automation to add and retreive data from Access and it isn't working; this is one possible cause.

boggg1
[bigglasses]
 
It could be. Usually to ensure that field names work regardless of space or not, you wrap the name in square brackets [ignore][field name] or [fieldname] or [field_name][/ignore]. Then there shouldn't be an issue if your fields have spaces in the names. Of course it goes without saying that anytime you can create field names without spaces, that is the preferred method.

Paul
 
Ok, thanks for the quick reply.

boggg1
[bigglasses]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top