A
Alain
Hi,
I am having some problem hiding/unhiding some control based on a checkbox
value.
For some reason nothing seems to work at all, here is the code I use
If Lease3rdParty Then
Forms![frmownedproperties]![subformcompany]![Tenant].Visible = True
Forms![frmownedproperties]![subformcompany]![TenantContact].Visible
= True
Forms![frmownedproperties]![subformcompany]![TenantNotes].Visible =
True
Forms![frmownedproperties]![subformcompany]![Line482].Visible = True
ElseIf Not Lease3rdParty Then
Forms![frmownedproperties]![subformcompany]![Tenant].Visible = False
Forms![frmownedproperties]![subformcompany]![TenantContact].Visible
= False
Forms![frmownedproperties]![subformcompany]![TenantNotes].Visible =
False
Forms![frmownedproperties]![subformcompany]![Line482].Visible =
False
End If
My controls are set up originally at visible= No
Can anybody help me out on this one
Thanks
I am having some problem hiding/unhiding some control based on a checkbox
value.
For some reason nothing seems to work at all, here is the code I use
If Lease3rdParty Then
Forms![frmownedproperties]![subformcompany]![Tenant].Visible = True
Forms![frmownedproperties]![subformcompany]![TenantContact].Visible
= True
Forms![frmownedproperties]![subformcompany]![TenantNotes].Visible =
True
Forms![frmownedproperties]![subformcompany]![Line482].Visible = True
ElseIf Not Lease3rdParty Then
Forms![frmownedproperties]![subformcompany]![Tenant].Visible = False
Forms![frmownedproperties]![subformcompany]![TenantContact].Visible
= False
Forms![frmownedproperties]![subformcompany]![TenantNotes].Visible =
False
Forms![frmownedproperties]![subformcompany]![Line482].Visible =
False
End If
My controls are set up originally at visible= No
Can anybody help me out on this one
Thanks