Hi,
Probably an easy question, but I havent found any good answers to it.
Say you have a code with several If statements. Something like this:
If me.checkbox = true then
If msgbox ("Do you want to continue", VbYesNo) = VbYes then
docmd.openform "formB"
else
Cancel=true
End if
End if
In this short example there are 2 If-statements and 2 End if`s. My question is this:
Which of the two If`s does the red End if end? Is it the first or is it the last?
Probably an easy question, but I havent found any good answers to it.
Say you have a code with several If statements. Something like this:
If me.checkbox = true then
If msgbox ("Do you want to continue", VbYesNo) = VbYes then
docmd.openform "formB"
else
Cancel=true
End if
End if
In this short example there are 2 If-statements and 2 End if`s. My question is this:
Which of the two If`s does the red End if end? Is it the first or is it the last?