By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,677 Members | 1,069 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,677 IT Pros & Developers. It's quick & easy.

ComboBox question

P: n/a
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
Share this Question
Share on Google+
6 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.