Thank you Ken. this works great. One more question, i have 3 labels that need
to flag. dg1, dg2, dg3. I wrote the same code in their respective check
boxes' afterUpdate, works fine but what should i put in the form's current
event procedure.
If i write the same codes entered in the AfterUpdate, it generates an error:
"Run-time error 94 - invalid use of Null". It works fine with one code but
not with the three of them. This is for i entered in the form's current event
procedure
Me.[DG1 label].visible = me.[DG1Approval]
Me.[DG2 label].visible = me.[DG2Approval]
me.[DG3 label].visible = me.[DG3Approval]
I know i must be doing something wrong. Thanks for your help.
Ken Sheridan said:
If the DHG1 label is a label control on page 1 of the tab control then in the
check box's AfterUpdate event procedure put:
Me.[DG1 Label].Visible = Me.[DG1Approval]
where DG1 Label is the name of the label control. If the form is a bound
one and the check box is bound to a field in the underlying table or query
then put the same line of code in the form's Current event procedure.
Ken Sheridan
Stafford, England
Sylvie said:
I have a form that has 2 tabs, one tab named Details and the other one named
DG Status. On the DG Status tab, there is a check box named DG1Approval, when
the check box is selected, the DG1 label on the Detail tab would appear. If
not checked, it won't be visible. Not sure how to do that?
Any help would be greatly appreciated. thank you