473,394 Members | 1,828 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,394 software developers and data experts.

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 2321
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****************@newssvr22.news.prodigy.co m>...
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
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...
7
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...
4
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
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...
0
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...
2
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...
6
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...
6
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....
4
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,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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...

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.