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

SQL 101 - can you have spaces in a field name?

Status
Not open for further replies.

pixelbro

Programmer
Sep 19, 2001
5
US
Sorry for the simple beginner's question. I've never used spaces in field names, always use either dot (.) or underscore (_) to link two words together, eg, last_name or last.name.

Just received a client's access database that has field names with spaces: "last name", "first name", etc.

Can I work with these fields using ASP to query the database?

thanks,

pixelbro
 
Yes, to call the field put it into []

so First Name should be written as [First Name]

Also, it is bad practice to use the . to split up database field names, this is because the . means something completly diffrent in other languages sucah as VB
 
Thanks for your answer and for the tip about the dot operator.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top