Combo Boxes...

tlynn

Board Regular
Joined
Aug 28, 2006
Messages
137
Office Version
  1. 365
Platform
  1. Windows
Let it be known that I am realitively new to the world of Access and all the good things that come with it. I am currently working on a Combo box that when the name is selected...I need the info associated with that name to change in the form I created...an example follows:

Name : Combo Box "name"
Home Phone:Home phone
Cell Phone:Cell phone
Title:Job Title
Shift: Shift worked


Vague at best I know...but some kind of direction would be greatly appreciated. I will continue to persue the additional threads here. T

Thank you in advance.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Really to help it would be nice to know more about the overall need and form design, but here is some quick help.

The combo box is sourced by a query, I'm assuming. And, I'm assuming that query is against a table that has all this information in it. That is, Name, Home Phone, Cell Phone, Job Title, and Shift Worked. So, include all that information in the query, and for the sake of clarity here, in the order just listed. The combo box has a property named "Column" which will allow access to all this extra data. The first column in the query will be .Column(0), the 2nd column in the query will be .Column(1) as a property of the combo box. I think you can get the picture here.

So, in the AfterUpdate event of the combo box, set you other fields equal to the appropriate column from the combo box.

HTH,
 
Upvote 0

Forum statistics

Threads
1,203,487
Messages
6,055,713
Members
444,810
Latest member
ExcelMuch

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