Let's say I have a check box control named CheckBox1 on a form named Main and I want to check the value of that check box in an If .. Then statement in some VB code. Can someone write a sample If .. Then statement for me? I'm not sure exactly how to access the values of controls I put on a form in my VB code.
Is it just:
If Main.CheckBox1 Then
Code to be executed
End If
Is it just:
If Main.CheckBox1 Then
Code to be executed
End If