Pop up error message window for functions
Sorry if this has been posted before, but I can't seem to find the answer.
I have set up a button on each record of a view, when the user clicks the button a function is called to send an email.
In the function, before the email is sent, it checks all the required info is present.
If it is NOT present, all I want to do is show a message "Please enter missing info and then try again" and then exit the function.
Seems simple, but I can't figure how to show the message.