padlocked17
Registered User.
- Local time
- Today, 08:26
- Joined
- Aug 29, 2007
- Messages
- 275
Good Evening,
I have a snippet of code that I want to be able to call up on multiple forms so I was going to place it in a module. I've got the following and I'm not sure what to replace the "Me." with since it's throwing an error:
I have a snippet of code that I want to be able to call up on multiple forms so I was going to place it in a module. I've got the following and I'm not sure what to replace the "Me." with since it's throwing an error:
Code:
Sub switchOnOff(onoff As Boolean)
Me.TabCtl1.Visible = onoff
Me.Label12.Visible = onoff
Me.Label13.Visible = onoff
Me.Label14.Visible = onoff
Me.Label20.Visible = onoff
Me.FirstName.Visible = onoff
Me.MI.Visible = onoff
Me.LastName.Visible = onoff
Me.Type.Visible = onoff
End Sub