I created a form of task and the completed task will be identified by a checkbox as clicked. The field is Task Completed: "checkbox". If the box is checked, then it is completed. The checkbox has to be done by a manager so I need to have to build a pop-up form (frm_Pin) with VBA code attached to it. The frm_Pin will pop - up when the checkbox is click (click event) on the checkbox.
Here is the vba code I created:
Private Sub...
Pin.setfocus
If Pin ="123" then
If Me.ChkBox = false then
Me.ChkBox = True
End If
Else
MsgBox "Pease re-enter pin"
End if
End sub
Question
I want the vba code to be able to see what is the current value. If yes (true), then change to no (false). How to insert loop code into the code above?
Thanks
Here is the vba code I created:
Private Sub...
Pin.setfocus
If Pin ="123" then
If Me.ChkBox = false then
Me.ChkBox = True
End If
Else
MsgBox "Pease re-enter pin"
End if
End sub
Question
I want the vba code to be able to see what is the current value. If yes (true), then change to no (false). How to insert loop code into the code above?
Thanks
Last edited: