saint_2008
Board Regular
- Joined
- Sep 6, 2007
- Messages
- 103
Hi hopefully someone can help, I'm trying to Hide some fields on my form when I select option on my toggle box.
I've tried doing it a few different ways but not sure as I'm very new to access.
This is what I have...
Private Sub Toggle10_KeyPress(KeyAscii As Integer)
Me.Equipment_ID.Visible = False
Me.Equipment_Type.Visible = False
Me.Manufacturer_Name.Visible = False
Me.Label18.Visible = False
Me.Label19.Visible = False
Me.Label20.Visible = False
End Sub
Private Sub Toggle11_KeyPress(KeyAscii As Integer)
Me.Equipment_ID.Visible = True
Me.Equipment_Type.Visible = True
Me.Manufacturer_Name.Visible = True
Me.Label18.Visible = True
Me.Label19.Visible = True
Me.Label20.Visible = True
End Sub
Any Idea why it doesn't work?
Many Thanks
I've tried doing it a few different ways but not sure as I'm very new to access.
This is what I have...
Private Sub Toggle10_KeyPress(KeyAscii As Integer)
Me.Equipment_ID.Visible = False
Me.Equipment_Type.Visible = False
Me.Manufacturer_Name.Visible = False
Me.Label18.Visible = False
Me.Label19.Visible = False
Me.Label20.Visible = False
End Sub
Private Sub Toggle11_KeyPress(KeyAscii As Integer)
Me.Equipment_ID.Visible = True
Me.Equipment_Type.Visible = True
Me.Manufacturer_Name.Visible = True
Me.Label18.Visible = True
Me.Label19.Visible = True
Me.Label20.Visible = True
End Sub
Any Idea why it doesn't work?
Many Thanks