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

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

apr pillai

Board Regular
Joined
Aug 12, 2008
Messages
236
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,982
Messages
5,834,682
Members
430,310
Latest member
Excelorate3305

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
Top