Hi
I have an if statement which checks if a value has benn entered and if it hasnet it pops up with a message box and tells them.
Now if the if statement is in the Sub as the code that is executing it works fine, but i put it into a seperate sub and call it from within the original sub:
Now since i have put it into the seperate sub and the ok/cancel button is pressed it still continues with the rest of the code and of course fails as not all information has been entered.
I wondered if anyone could help
Regards
I have an if statement which checks if a value has benn entered and if it hasnet it pops up with a message box and tells them.
Now if the if statement is in the Sub as the code that is executing it works fine, but i put it into a seperate sub and call it from within the original sub:
VB.NET:
If AppVariables.CustName = "" Then
MsgBox("You have to configure this report before it can be run." & (Chr(13)) & (Chr(10)) & "Go to Configuration > Configure to resolve this", MsgBoxStyle.Critical)
Return
End If
Now since i have put it into the seperate sub and the ok/cancel button is pressed it still continues with the rest of the code and of course fails as not all information has been entered.
I wondered if anyone could help
Regards