473,698 Members | 2,166 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ComboBox question

An easy ComboBox question. ;)

I would like to create a ComboBox, which permits to cycle through 3
subforms. These 3 subforms are entered in the ComboBox as Value List.
The subforms should only be selectable via the cycle gadget (the button
with the arrow right of every ComboBox control) of the ComboBox.

How can disable the left part (text part of every ComboBox), so that no
entry can be manually made into the ComboBox?

I would like to select the subforms exclusively via the cycle gadget.

--
Georges

Nov 12 '05 #1
6 2333
This won't stop them from typing something in, but will prevent the combo
box from trying to use it. Set LimitToList in the combo box's properties to
Yes.

--
Wayne Morgan
MS Access MVP
"Georges Heinesch" <ne**@geohei.lu > wrote in message
news:3f******** **@news.vo.lu.. .
An easy ComboBox question. ;)

I would like to create a ComboBox, which permits to cycle through 3
subforms. These 3 subforms are entered in the ComboBox as Value List.
The subforms should only be selectable via the cycle gadget (the button
with the arrow right of every ComboBox control) of the ComboBox.

How can disable the left part (text part of every ComboBox), so that no
entry can be manually made into the ComboBox?

I would like to select the subforms exclusively via the cycle gadget.

--
Georges

Nov 12 '05 #2
or use three option buttons or checkboxes in a option group... use the
option group wizard to build it

"Wayne Morgan" <co************ *************** @hotmail.com> wrote in message news:<vm******* *********@newss vr22.news.prodi gy.com>...
This won't stop them from typing something in, but will prevent the combo
box from trying to use it. Set LimitToList in the combo box's properties to
Yes.

--
Wayne Morgan
MS Access MVP
"Georges Heinesch" <ne**@geohei.lu > wrote in message
news:3f******** **@news.vo.lu.. .
An easy ComboBox question. ;)

I would like to create a ComboBox, which permits to cycle through 3
subforms. These 3 subforms are entered in the ComboBox as Value List.
The subforms should only be selectable via the cycle gadget (the button
with the arrow right of every ComboBox control) of the ComboBox.

How can disable the left part (text part of every ComboBox), so that no
entry can be manually made into the ComboBox?

I would like to select the subforms exclusively via the cycle gadget.

--
Georges

Nov 12 '05 #3
Roger wrote:
or use three option buttons or checkboxes in a option group... use the
option group wizard to build it


This would als be a possibility, but unfortunately I am limited in
space, hence a ComboBox is the optimum regarding space criteria.

Thanks for the suggestion.

--
Georges

Nov 12 '05 #4
Wayne Morgan wrote:
This won't stop them from typing something in, but will prevent the combo
box from trying to use it. Set LimitToList in the combo box's properties to
Yes.


That's done already.

It seems that I cannot disable the ComboBox text part (left) from
accepting entries without disabling the cycle gadget (right) at the same
time. A pity!

--
Georges

Nov 12 '05 #5
I just tried this - and I can only type GO or STOP, or select them from the
pull down list

Private Sub Combo0_Change()
If (Combo0.Text <> "GO" And Combo0.Text <> "STOP" And Combo0.Text <> "") Then
Combo0.Text = ""
End If
End Sub
Georges Heinesch <ne**@geohei.lu > wrote in message news:<3f******* *@news.vo.lu>.. .
Roger wrote:
or use three option buttons or checkboxes in a option group... use the
option group wizard to build it


This would als be a possibility, but unfortunately I am limited in
space, hence a ComboBox is the optimum regarding space criteria.

Thanks for the suggestion.

Nov 12 '05 #6
Roger wrote:
I just tried this - and I can only type GO or STOP, or select them from the
pull down list

Private Sub Combo0_Change()
If (Combo0.Text <> "GO" And Combo0.Text <> "STOP" And Combo0.Text <> "") Then
Combo0.Text = ""
End If
End Sub


This is indeed a brilliant idea. I tested it as well and it works! I'm
probably gonna use that one. However I was thinking when posting my
initial article, that Access would possibly have an option which would
block data entry into the text part of a ComboBox. This doesn't seem to
be the case.

Thanks for your help!

--
Georges

Nov 12 '05 #7

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

Similar topics

10
1944
by: Mr. B | last post by:
I've been seeking the solution to this. But can't figure it out (sounds simple enough). When you Populat a ComboBox, you can select the initial displayed items on startup simply by setting the TEXT to a valide item in the Combobox. What I want to do is to select the initial listed item to an item based upon a varrying veriable. For example, the combobox is populated with a list of Users.
7
8519
by: Nicolae Fieraru | last post by:
Hi All, I am trying to change the rowsource of a combobox when I click on it. I played with many events, associated with the form and the combobox, but still haven't figured out what is the way of doing it. I have a table with products, tblProducts, some of them are Active while others are Inactive. The form shows all the products purchased by a customer, both Active and Inactive in a ComboBox, cbProducts. My client wants to view all...
4
1749
by: David Sworder | last post by:
Hi, I have a ComboBox that contains 1,400 sorted items . Here's the list: abba apple ... cabba caccaa capple
4
9116
by: Beeeeeeeeeeeeves | last post by:
I have an ownerdrawn combo box which I am drawing with an image and some text, this is all working beautifully apart from the difference in the Brush I have to draw the background and the text with if the item is the currently selected one. I have selected a blue (SystemColors.Highlight) background brush and white (SystemColors.HighlightText) text brush if the item is the highlighted one, but when I do that instead of functioning like a...
0
2662
by: Hiroyuki Tanaka | last post by:
Hi All, I am trying to develop an application for a touch screen using buttons for the numeric pad with Completion ComboBoxes. At the moment I am having a problem sending the button presses to my Completion ComboBox using sendkey.wait. From the keyboard (that will not exist for my final application) I can enter text into my Completion and the selection completes as expected.
2
4327
by: pei_world | last post by:
I want to implement a key hit with enter to dropdown a combobox that is in the datagrid. in this case I need to override its original behaviours. I found some codes from the web. Does anyone know how to use this code? please help! http://www.experts-exchange.com/Programming/Programming_Languages/C_Sharp/Q_20862953.html
6
7806
by: Sakharam Phapale | last post by:
Hi All, How to fill one ComboBox from other ComboBox control? 1) Only setting the reference does the trick but doesn't show items in control. If you see in immediate window, it shows the item count correctly
6
10582
by: Hal Heinrich | last post by:
How do I implement the value equivalent of the ComboBox.FindStringExact method? I.e. How do I set the ComboBox.SelectedIndex so that the ComboBox.SelectedValue object matches one that I specify. Thanks in advance for any help, Hal Heinrich VP Technology Aralan Solutions Inc.
4
1815
by: JJGarcia | last post by:
Hi Everyone, I'll try to explain the process I'm following, I'm new to this so I'm triying the easy way first, probably the lasyest too! I created a new Project, drag in to it a SQLConnection, configured, dragged an Dataadapter per each table I need it, then generated the dataset, after that, I stablished the relations between tables, then, went over to the datasources, choose the parent datasource and clicked on the + sign, it...
0
8675
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8604
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9029
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8897
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8862
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7729
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6521
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
3050
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2331
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.