I have a program created with about 5 different forms. At one point in one of the forms, I want to have a statement stating that If a checkbox on that form is checked, AND a certain checkbox on the previous form was checked, Then it will prompt the user for information. However, I am new to programming and I am stuck on how to refer to the checkbox on the previous form. I can have some code something like this:
If chkMedical.Value = True
but what kind of code do I write if I want to say that Both chkMedical.Value = True on the current form AND chkPatient.Value = True on the previous form, Then. . . .
The parts I am unsure of are what code I write to indicate that BOTH have to be True, and also, how do I refer to the checkbox on the previous form, rather than having it look for that particular checkbox on the current form?
If chkMedical.Value = True
but what kind of code do I write if I want to say that Both chkMedical.Value = True on the current form AND chkPatient.Value = True on the previous form, Then. . . .
The parts I am unsure of are what code I write to indicate that BOTH have to be True, and also, how do I refer to the checkbox on the previous form, rather than having it look for that particular checkbox on the current form?