I am new to this so I am not sure if I am asking this correctly.
I have a form that has multiple toggle buttons. I would like to be able to do the following when the toggle button is clicked:
- set the date
- set the user
- lock both fields so that the information is not lost
Because there are multiple toggle buttons I would like to be able to use variables.
Here is a sample of what i have. Hopefully someone can point me in the right direction.
Private Sub CONTRACTTgl_Click()
CONTRACTDATE = Now()
CONTRACTEMP = CurrentUser
CONTRACT = "Collected"
Me.CONTRACTDATE.Locked = True
Me.CONTRACTEMP.Locked = True
End Sub
Private Sub COPYSSTgl_Click()
COPYSSDATE = Now()
COPYSSEMP = CurrentUser
COPYSS = "Collected"
Me.COPYSSDATE.Locked = True
Me.COPYSSEMP.Locked = True
End Sub
Private Sub COPYUTILITYTgl_Click()
COPYUTILITYDATE = Now()
COPYUTILITYEMP = CurrentUser
COPYUTILITY = "Collected"
Me.COPYUTILITYDATE.Locked = True
Me.COPYUTILITYEMP.Locked = True
End Sub