Hello,
I am having a problem with an IF/ELSE statement, although used many other times.
I have a cmd button on a form which executes or ends a certain code, depending on the value in txtbox1. Thank you for your help
I am having a problem with an IF/ELSE statement, although used many other times.
I have a cmd button on a form which executes or ends a certain code, depending on the value in txtbox1. Thank you for your help
Code:
If Me.txt1 = "partial" Then
MsgBox "Sorry, you cannot perform this action is you have selected partial"
' code should stop running
End If
If Me.txt1 = "total" Then
'''' Code continues running
end if
exit sub