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!

Referencing "two word" fields 1

Status
Not open for further replies.

sepia

Programmer
May 18, 2001
26
US
How do you reference a field that it's name consist of two words in a expression (ex: "First Name")? Thanks!
 
The prior answer is correct, but I couldn't help but add the rest of the standard reply. It is consider a good practice to carefully name your database tables, fields, queries, modules, etc. I constantly see people who use two words or Access reserved words in their naming conventions. This usually ends up causing more problems / confusion than almost anything else.

-- Be aware of Access's reserved words and don't use them by themselves.

-- If you are going to name a field "First Name", use an "_" to separate the words as in "First_Name".

Another tip is to make sure you give the controls on your forms meaningful names. "txtFirst_Name" makes a lot more sense than "textbox134".

Just my two cents... Terry M. Hoey
th3856@txmail.sbc.com
While I don't mind e-mail messages, please post all questions in these forums for the benefit of all members.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top