Greetings,
I have a designed a form that allows users to send an email to a list of clients from Access. There are three fields: subject, message and attachment path. If any fields are left empty I can pop up a message to the user and allow them to send the email without the particular information. However, if the path of the attachment is entered incorrectly, an error occurs. I want to capture the error to tell the user that they entered the wrong path or file name. I've used a msgbox to try to get the error number and it gives me a different 8 digit number each time. I could handle it by using a general error capture but the message would say the path is the problem when it could be any error (not that errors happen very often with my code: insert wink here). I've looked into using a browse button to find the path but I don't have the license for the Common Dialog Control. So, there it is, any suggestions or comments would be welcome.
I have a designed a form that allows users to send an email to a list of clients from Access. There are three fields: subject, message and attachment path. If any fields are left empty I can pop up a message to the user and allow them to send the email without the particular information. However, if the path of the attachment is entered incorrectly, an error occurs. I want to capture the error to tell the user that they entered the wrong path or file name. I've used a msgbox to try to get the error number and it gives me a different 8 digit number each time. I could handle it by using a general error capture but the message would say the path is the problem when it could be any error (not that errors happen very often with my code: insert wink here). I've looked into using a browse button to find the path but I don't have the license for the Common Dialog Control. So, there it is, any suggestions or comments would be welcome.