473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Help with creating Drop Down Combo Box

2 New Member
I have a table with a list of names and then multiple phone numbers across 3 columns, ie Home Phone, Mobile, Work, and want to create a drop down combo box that selects the "preferred" number to be used. How do I do this?

Thanks
Sep 6 '13 #1
2 952
jimatqsi
1,271 Recognized Expert Top Contributor
If your combo box is named "PhoneList_cbo" you could write in the OnCurrent event of the form:
Expand|Select|Wrap|Line Numbers
  1. Me.PhoneList_cbo.Rowsource = me.[Home Phone] & ";" & me.Mobile & ";" & me.Work & ";"
  2.  
This will change the choices in your combo box every time you settle on a new record. That may be a little confusing at first if you are dealing with a continuous form but should not be a problem.

This assumes you have a one-column combo box. You could label the entries in a two-column combo box by adding "somelabel" & "; before each of the various phone numbers in the rowsource. Also, it would not be a bad idea to add some code to avoid putting blank entries into your combo box.

Jim
Sep 6 '13 #2
AccessLPlates
2 New Member
Thanks jimatqsi. It worked like a champ.
Sep 6 '13 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Todd D. Levy | last post by:
I have a number of Drop Down Combo Boxes where users select a country; 99% of the time the selection will be "United States". I want to use VBA code in the New Record Event to populate this field...
2
by: Phil Longworth | last post by:
Im very new to Access 97 and Im sure I should be able to do this but cant work out how. Im bulding a database for my stamp collection. I have two tables; one with details of all the individual...
2
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will...
17
by: Aussie Rules | last post by:
Hi, I want to have a single line combo box dropdown, but where i can selected multiple items in the drop down via a check box... I can see one in the standard tool box... is there one ? If...
1
by: king fahid | last post by:
Hello: Dear i am Fahid. I need help about Drop down list. The problem is that i want to select by default value from dropdown list that matches with the value in the php variable. e.g. ...
2
by: Dev1 | last post by:
All- I'm new to this forum and i've been working with acces for about 2 days now. I have a form in which I have two combo boxes and depending on what is selected on the first dropdown the second...
1
by: kalaivani572 | last post by:
Can anyone tell me is there a way to populate a drop down/combo box in a listview control in C#.net. please help me ASAP
10
by: kashhere | last post by:
hi all, i had two drop down boxes on the selection of one item in the first drop down box the related items should be changed in the second one can any one please suggest me towards the solution...
6
by: radhikams | last post by:
Hi All Can anyone help me with implementing Paginated Drop-Down Combo Box using Ajax/GWT Thanks In Advance Radhika
1
by: janakrai | last post by:
how to auto expand drop down combo box in onfocus event like click event
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.