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

Column name in table with space

Status
Not open for further replies.

XTnCIS

Programmer
Apr 23, 2002
57
0
0
US
I am working on someone's database that has a column called: Serial Number

When I try to reference that column in a function like DLookup: DLookup("Social Number", ...)

I get an error message saying my expression is not valid... When I try the same statement with a field that is not named with an embedded space it works fine.

Do you know how to reference a column that is named with a space?
 
Enclose the field name within brackets: "[name with space]"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top