I have a public function and I call it and want to determine whether the function was true of false (which I set at some point during the operation of the function).
Here's the function in general terms:
In my code I want to call this function and then in the next line determine if the function is true or false. How do I do it? I tried:
If AttachEmail = False then yada yada
But I just got an error.
I appreciate the help!
Here's the function in general terms:
Code:
Public Function AttachEmail(byVal sFolder as string) as Boolean
AttachEmail = True
End Function
In my code I want to call this function and then in the next line determine if the function is true or false. How do I do it? I tried:
If AttachEmail = False then yada yada
But I just got an error.
I appreciate the help!