Full name in Combo Box

G

Guest

I have a combo box on a subform that where I want to display and select a
person's full name. The underlying query selects the contacts for the
company displayed on the full form. The "contacts" table that the query
selects from has Last, Middle Initial, First name columns (for sorting
purposes on other forms). I want the combo box to display the full name in a
"natural" (concatenated) way (not in two columns) and then be able to select
that record to update other fields on the subform.

Any assistance would be greatly appreciated.
 
G

Guest

CReate a new query with 5 columns - Sort it by Col 4
Col 1= IDField
Col 2 = 1stname
Col 3 = MiddleName
Col 4 = LastName
Col 5 = Full:[1stname]&" "&[MiddleName]&" "[LastName]

Create a combo based on this query
Set widths 0;0;0;0;3
Bound Column is Col 1


Hope this helps - have fun
 
G

Guest

Thank you Wayne-I-M - your answer worked perfectly. It makes for a very nice
form.

Wayne-I-M said:
CReate a new query with 5 columns - Sort it by Col 4
Col 1= IDField
Col 2 = 1stname
Col 3 = MiddleName
Col 4 = LastName
Col 5 = Full:[1stname]&" "&[MiddleName]&" "[LastName]

Create a combo based on this query
Set widths 0;0;0;0;3
Bound Column is Col 1


Hope this helps - have fun



--
Wayne
Manchester, England.



ErieAl said:
I have a combo box on a subform that where I want to display and select a
person's full name. The underlying query selects the contacts for the
company displayed on the full form. The "contacts" table that the query
selects from has Last, Middle Initial, First name columns (for sorting
purposes on other forms). I want the combo box to display the full name in a
"natural" (concatenated) way (not in two columns) and then be able to select
that record to update other fields on the subform.

Any assistance would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top