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!

Can I merge 2 fields (first last name) into a combo box dropdown list?

Status
Not open for further replies.

dreandre

Technical User
Mar 27, 2003
27
US
Hello all,
What I need to have happen is a form dropdown list with the first and last name displayed in the list. When selected I need the information to add to the new record in the table in the proper first name and last name fields. Is that possible??
 
You can easily set the combo box to display multiple columns (check out the ColumnCount and ColumnWidths properties). That would take care of displaying both fields at once.

I would recommend against storing both the first and last names in your table. I would instead store an identifier (such as EmployeeID, etc) in the table that allows you to look these up on the fly. That way, when Cindy Jones gets married and is now Cindy Smith, you only need to change her name in the one table, and it gets updated through every record. Similarly, if Charles starts going by the name Chuck, you can easily adjust his information.
 
Hi,
I wrote an FAQ on how to create custom fields within the query tool. You can use this to merge last name with first name, as my example shows. faq701-3273

This query will not change anything in your database. HTH, [pc2]
Randy Smith
California Teachers Association
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top