Hiding Fields with Check Box (1 Viewer)

stu_c

Registered User.
Local time
Today, 11:07
Joined
Sep 20, 2007
Messages
489
Hi all
I have got tick box that I want when ticked to unhide some fields?

The Tick box is called: Dispose and when this is ticked I want the field Disposel address etc. to be unhidden?

I have got it kind of working but when I go onto a new record then back to the previous one the record on the previous is hidden any pointers?

Code:
Private Sub Form_Current()
Me.DisposeAddress.Visible = False
End Sub
 
Private Sub DisposeCheck_AfterUpdate()
If Me.DisposeCheck = -1 Then
Me.DisposeAddress.Visible = True
End If
End Sub

thanks
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:07
Joined
May 7, 2009
Messages
19,226
Code:
Private Sub Form_Current()
Me.DisposeAddress.Visible = Nz(Me.DisposeCheck, False)
End Sub
 
Private Sub DisposeCheck_AfterUpdate()
'same code as above
Call Form_Current
End Sub
 

Users who are viewing this thread

Top Bottom