Fill in a field based on a lookup?

VorLag

Board Regular
Joined
May 13, 2013
Messages
205
I am trying to create a table that houses when a person makes a request. I have one field where they select their name from a drop-down list. What I would also like to do is have fields update with that person's phone number and email address. I have everyone listed in a table with contact info. Is there a way to get a field in a table to perform a lookup in a different table to do this?

This is what I tried so far, but all it does is create a drop-down list and it seems to only include the first email address in the contact table. Is there another way to do this?

8
 

Excel Facts

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Create a combobox with three columns: Name, Phone Number and email address using the contact info table. On the On_Click() event procedure you can insert phone number and email address into their respective fields with a small vba routine that will run when the user clicks on the combobox to select the name. Sample program is given below:

Code:
Private Sub EmployeeCombo_Click()
     Me![Phone] = Me!EmployeeCombo.Column(1)
     Me![Email] = Me!EmployeeCombo.Column(2)
 End Sub

For more details refer this link: Combo-Box Column Values | LEARN MS-ACCESS TIPS AND TRICKS
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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