|
|
I have a PopUp form (popup = yes, modal = no) that consists of a form and subform. The subform is continuous and lists a group of people and certain attributes. One of those attributes is displayed as a Check Box. When the PopUp form is opened, the check box for everone's record is grayed out. If I scroll down the list of people, the check boxes take on their correct true/false appearance, but when I close and reopen the form, they go back to gray.
This does not happen when I make the form popup = no (when I open the form, all the check boxes are correct), and is unaffected by the setting of the modal property. This form really need to be a popup form.
I have tried setting the focus to the subform, requerying/recalulating/refreshing and repainting, but can't seem to figure it out. Anyone run into this before?
Thanks for any suggestions.
|
|
Sorry, forgot to mention that the CheckBox is a bound check box.
"rbm" wrote:
[Quoted Text] > I have a PopUp form (popup = yes, modal = no) that consists of a form and > subform. The subform is continuous and lists a group of people and certain > attributes. One of those attributes is displayed as a Check Box. When the > PopUp form is opened, the check box for everone's record is grayed out. If I > scroll down the list of people, the check boxes take on their correct > true/false appearance, but when I close and reopen the form, they go back to > gray. > > This does not happen when I make the form popup = no (when I open the form, > all the check boxes are correct), and is unaffected by the setting of the > modal property. This form really need to be a popup form. > > I have tried setting the focus to the subform, > requerying/recalulating/refreshing and repainting, but can't seem to figure > it out. Anyone run into this before? > > Thanks for any suggestions.
|
|
"rbm" <rbm[ at ]discussions.microsoft.com> wrote in message news:6EE6C0A9-599E-4078-8B11-5CE6CBA1A169[ at ]microsoft.com...
[Quoted Text] >I have a PopUp form (popup = yes, modal = no) that consists of a form and > subform. The subform is continuous and lists a group of people and > certain > attributes. One of those attributes is displayed as a Check Box. When > the > PopUp form is opened, the check box for everone's record is grayed out. > If I > scroll down the list of people, the check boxes take on their correct > true/false appearance, but when I close and reopen the form, they go back > to > gray. > > This does not happen when I make the form popup = no (when I open the > form, > all the check boxes are correct), and is unaffected by the setting of the > modal property. This form really need to be a popup form. > > I have tried setting the focus to the subform, > requerying/recalulating/refreshing and repainting, but can't seem to > figure > it out. Anyone run into this before? > > Thanks for any suggestions.
Set the DefaultValue property of the checkbox to False. When a checkbox shows up greyed, it means the control currently contains Null.
|
|
Thanks for the reply, but the control actually contains a value (default is "true"). With the form open, if I scroll down the list, the checkboxes that are "revealed" as I go down the list do not appear grayed out; if I go to the bottom of the list and back to the first record, all check boxes are displayed properly.
It seems to not want to populate the value (wants to leave it null) until the record goes off the screen and reappears.
Bob McCormack
"Stuart McCall" wrote:
[Quoted Text] > > Set the DefaultValue property of the checkbox to False. When a checkbox > shows up greyed, it means the control currently contains Null. > > >
|
|
For that Default value, is it the default in the table definition or in the form definition of the control. I believe there will be a difference. Are you saying that it is grayed out even when there is a check (true value) in the underlying field?
|
|
That is correct. It is grayed out even when there is a true value in the underlying field. I think it has something to do with the PopUp=Yes value. When I open the same form with a PopUp=No setting, the check boxes appear correctly. Even with the PopUp-Yes setting, if I scroll down or up in the subform (a continuous form), the check boxes show correctly as they come into or outof the "field of view".
"Ron2006" wrote:
[Quoted Text] > For that Default value, is it the default in the table definition or > in the form definition of the control. I believe there will be a > difference. Are you saying that it is grayed out even when there is a > check (true value) in the underlying field? >
|
|
|