May be just easy questions

  • Thread starter Thread starter Min
  • Start date Start date
M

Min

1) How to know which option radio button in a fram is selected?

2) How set multi-choise 's default value? I've added three multi-choise
boxes on a form, If I assg

3) why in one fram, multi-choise boxes works just like the radio button.

4) How to set default value (selected or not) for multi-choise or option
button?
 
I know that in VB we can have boxes or option button as control arrays start
with index set at 0...5 for example.

I'm sure we can while using access. Can we?

Phil
 
Thank You.

Phil
Dirk Goldgar said:
No control arrays in Access. There's not that much need for it, because
forms in continuous view serve most of the purposes of control arrays.
But you can simulate a control array by naming a set of controls with an
ascending numeric suffix, as "Check1", "Check2", "Check3". Then code
can loop through the controls by appending an numeric loop-index value
to the base string "Check" and using that as a string index to the
form's Controls collection.

--
Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)
 
Look at the value of the frame control: it will have the same value as the
Option value which has been selected. You can also set the default value of
the frame control in the same way.

You cannot have multiple choice values for a frame control. Enclose your
boxes or your buttons in a rectangle if you don't want your multi-choice
boxes to behave like radio buttons. When not enclosed in a frame, your
boxes and buttons will have supplemental data properties: Default Value,
Control Source, etc.

S. L.
 
Phil said:
I know that in VB we can have boxes or option button as control
arrays start with index set at 0...5 for example.

I'm sure we can while using access. Can we?

No control arrays in Access. There's not that much need for it, because
forms in continuous view serve most of the purposes of control arrays.
But you can simulate a control array by naming a set of controls with an
ascending numeric suffix, as "Check1", "Check2", "Check3". Then code
can loop through the controls by appending an numeric loop-index value
to the base string "Check" and using that as a string index to the
form's Controls collection.
 
Back
Top