473,396 Members | 1,767 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Control Combo Box selection

Hi all,

I have three combo boxes on a form! what I want to be able to do is
manipulate access to the last two combos, depending on the selection
of the options in the first combo.

I have several options in each combo. In the first combo I want the
user to be fit to select any of the options to allow the user to
access the other two combo's, unless the user selects the option "Not
Interested".

Currently I tried disabling combo2. Then in my afterupdate event of
the 1st combo I entered:

Me.Combo2.Enabled = (Me.Combo1 = "Interested")

Which works fine, but I am unable to select any of the other options
to allow access to the other two combos. I tried tweeking the code but
to no avail.

Hope someone can Help, I know this may be easily sorted, but its only
easy if you know the method.

Kindests regards to anyone that can help.
Nov 12 '05 #1
5 1933
What do you mean by "but I am unable to select any of the other options to
allow access to the other two combos"? Does the first combo box lock-up and
not let you make any more selections?

--
Wayne Morgan
Microsoft Access MVP
"Cillies" <le*@prologic.ie> wrote in message
news:ba**************************@posting.google.c om...
Hi all,

I have three combo boxes on a form! what I want to be able to do is
manipulate access to the last two combos, depending on the selection
of the options in the first combo.

I have several options in each combo. In the first combo I want the
user to be fit to select any of the options to allow the user to
access the other two combo's, unless the user selects the option "Not
Interested".

Currently I tried disabling combo2. Then in my afterupdate event of
the 1st combo I entered:

Me.Combo2.Enabled = (Me.Combo1 = "Interested")

Which works fine, but I am unable to select any of the other options
to allow access to the other two combos. I tried tweeking the code but
to no avail.

Hope someone can Help, I know this may be easily sorted, but its only
easy if you know the method.

Kindests regards to anyone that can help.

Nov 12 '05 #2

Yea! thats right.
Sorry for the confusion.

If I selected say! "Interested" (which is what i have used in my code)
combo2 allows me to select the from its list (which by the way is a
Value List)
and if I select any other option in combo1, combo2 becomes disabled.

You see I want to be able to select any of the option which will allow
me to access combo 2&3 unless the Option "Not Interested" is selected
then I want comb2&3 to become disabled.

I am not sure how to incoroprate combo3 into the code either.

Hope this is clearer


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #3
You will probably need to do an if then else statement for the other selections
I would think. Or, I'm sure there is a reference to the cbo Control, but I'm
too new and blue to know it, yet.

Michael
Nov 12 '05 #4
Ok, you want combos 2 and 3 to be enabled unless you select "Not Interested"
in combo 1. If "Not Interested" is selected, combos 2 and 3 should be
disabled. Is this correct? If so, in the After Update event of combo 1

Me.Combo2.Enabled = Not (Me.Combo1 = "Not Interested")
Me.Combo3.Enabled = Not (Me.Combo1 = "Not Interested")

The Not keyword will reverse the value of the True/False. So, if Combo1 is
Not Interested then the value will be True, the Not will reverse this and
assign False to the left side of the =.

--
Wayne Morgan
MS Access MVP
"devdex.com" <an*******@devdex.com> wrote in message
news:40*********************@news.frii.net...

Yea! thats right.
Sorry for the confusion.

If I selected say! "Interested" (which is what i have used in my code)
combo2 allows me to select the from its list (which by the way is a
Value List)
and if I select any other option in combo1, combo2 becomes disabled.

You see I want to be able to select any of the option which will allow
me to access combo 2&3 unless the Option "Not Interested" is selected
then I want comb2&3 to become disabled.

I am not sure how to incoroprate combo3 into the code either.

Hope this is clearer


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 12 '05 #5
Thanks Wayne, it works a treat.

I was so close but yet so far.

Everything I pick up is minimises' the knowledge that I don't have.
Cheers
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Alex | last post by:
Acc97.. I have a database which records down-time on 8 machines, the selection of reasons comes from a combo box. I have tried to be clever! and limit the options relative to each machine within...
2
by: Paul C. | last post by:
Hi folks. I have a WebControl TextBox which I would like to force to select all it's text during PreRender. My problem is that I don't know how to do this. I already have a reference to the...
0
by: RobKinney1 | last post by:
Hello all and thank you for reading this post. Question: Visual Studio 2005 has numerous instances of a control used in their interface that I have never seen before. It is the control that...
0
by: (PeteCresswell) | last post by:
Got a TreeView control on the screen. User clicks a node, screen loads details for that node. Screen has two modes: Browse and Edit. If the user clicks "Edit", I set Tree.Enabled=False and...
7
by: hubs | last post by:
Hi! I am new to Access and would appreciate some help. I am develping a browser form which provides the user a view of some data (i.e. surname, firstname, dob) from a database using a query. I...
1
by: didihynes | last post by:
Hi Guys, I'm in desparate need of help. I am producing a database for my dissertation and have got majorly stuck. I am currently creating a form in which the user will select a student from a...
5
by: =?Utf-8?B?Um9iZXJ0IFNtaXRo?= | last post by:
Hi, I wish to create a repeater control in c#.net that allows for the selection of rows, any idea how this can be done. Regards Robert
1
by: KMEscherich | last post by:
Platform = Windows Program = Access 2003 Hi there, I am stumpped!! I am attempting to populate a form control as follows: I have a form that has 2 drop-down boxes. One retrieves the...
4
by: dekk | last post by:
I am trying to populate a text field from the combo selection. I have the following update event in the combo box Private Sub cboContract_AfterUpdate() Me!txtDesc = Me!cboContract.Column(1)...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.