Gilbertjoe
MIS
I have a form with a field on it of [emailaddress]. I created a command button that when clicked opens email and puts in the email address in the to line. Heres the code.
Docmd.SendObject acSendNoObject,,acFormatRTF,Me![EmailAddress],,,,,-1
The problem is when someone clicks the command button when the field is blank I get runtime error. What is want is a popup mesage of "Invalid or no Email address provided" to appear if the command button is pushed and the field is blank but am having a brain freeze up doing trying to figure it out.
How do i do this?
Thanks