lookup containing multiple fields

Lisa_King_3

New Member
Joined
Jan 26, 2004
Messages
39
hiya people

i have a field in tblEvents called member. This field looks up the fields "Forename" "Surname" "Gender" in tblmembers. however, when i selct one of the members in the database, it only insert the first lookup field, forename, into the member field. is there a way that anyone knows of that will enter both the forename and surname into the field member?

hope someone can help, cos I'm knew to Access

Lisa x
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You can join fields using concatenation, so you can use
=[forename] & " " & [Surname]
To join your fields and display them

HTh

Peter
 
Upvote 0
If the fileds are in the record scource for your form/report then you can just do it straight in a textbox.

If the field names are only in the Combo box then use something like this in a text box
=[cboName].[Column](1) & " " & [cboName].[Column](2)

where [cboName] is the name of your combo box and columns 1 and 2 are the columns with the names you want.
(Combobox columns start numbering from 0)

Hope this makes sense :)

Peter
 
Upvote 0

Forum statistics

Threads
1,221,626
Messages
6,160,909
Members
451,677
Latest member
michellehoddinott

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top