I am trying to apply a very simple IF THEN ELSE statement to my VB code to send an email (The code runs fine without the IF THEN ELSE statement)
The IF part will be "IF value is null then end program"
The Else will be to run the code and send the email like normal but once I add the If statement it says "compile error: else without if" but there is an "IF" and an "END IF" statement in the code.
Can someone tell me what I am doing wrong? (Also there is no IF statements in the "send email" code)
Private Sub ImpBy_AfterUpdate()
If Me.ImpBy = Null Then End
'EMAIL SEND PROGRAM GOES HERE, I LEFT THIS OUT TO MAKE THIS LOOK SIMPLE.