C
Carl Rapson
I have a form that contains unbound option groups and an unbound combo box
in the form header section. The form itself is bound to a query, but in the
Load event I set the form's RecordSource to something like:
SELECT * FROM [query] WHERE FALSE;
This has the effect of hiding all of the data fields on the form, leaving
only the option groups and combo box showing. The option groups are used to
limit the items that show in the combo box, and the combo box is used to
select an item to view on the form. When a selection is made in the combo
box, the form's RecordSource is modified to fetch that record and the fields
"magically" appear on the form. The two option gropups have default values
associated with them, that provide the initial list of items in the combo
box.
Under Access 2002, the two option groups would show their default values
selected even when the form first opens (no record in the form's
RecordSource). Under Access 2007, however, the option groups appear like
they do in form design view - there is no obvious selection, and each radio
button in the groups is "grayed", even the current selection. The option
groups aren't disabled because the user can click on a radio button,
however, and the click registers and the combo box updates accordingly. But
the current selections in the option groups don't show until an items is
selected in the combo box and a record appears on the form. So it appears
that the unbound option groups are connected somehow to the form's
RecordSource.
Has anyone else noticed this? Is this by design? Does anyone have any ideas
about how to make this work like it did under Access 2002, or alternatively
another way to accomplish the same thing?
Thanks for any information,
Carl Rapson
in the form header section. The form itself is bound to a query, but in the
Load event I set the form's RecordSource to something like:
SELECT * FROM [query] WHERE FALSE;
This has the effect of hiding all of the data fields on the form, leaving
only the option groups and combo box showing. The option groups are used to
limit the items that show in the combo box, and the combo box is used to
select an item to view on the form. When a selection is made in the combo
box, the form's RecordSource is modified to fetch that record and the fields
"magically" appear on the form. The two option gropups have default values
associated with them, that provide the initial list of items in the combo
box.
Under Access 2002, the two option groups would show their default values
selected even when the form first opens (no record in the form's
RecordSource). Under Access 2007, however, the option groups appear like
they do in form design view - there is no obvious selection, and each radio
button in the groups is "grayed", even the current selection. The option
groups aren't disabled because the user can click on a radio button,
however, and the click registers and the combo box updates accordingly. But
the current selections in the option groups don't show until an items is
selected in the combo box and a record appears on the form. So it appears
that the unbound option groups are connected somehow to the form's
RecordSource.
Has anyone else noticed this? Is this by design? Does anyone have any ideas
about how to make this work like it did under Access 2002, or alternatively
another way to accomplish the same thing?
Thanks for any information,
Carl Rapson