DoCmd.SendObject Error Msg (2nd Time posting)

K

KAnoe

I sent this in last week and I di not think that I got it

I out this code in the Form

Any Help would be Great

'** Include an error tra
On Error GoTo emessage
'This is your cod

docmd.sendobject,acsend......

endthisevent
Exit Su

'This is where the error trap begin
emessage
msgbox "There was an error" & err.descriptio
resume endthis
'The err.description is optional (I use it for
troubleshooting

'******Hope this help


-----Original Message----
I have a E-mail that I can send by using the
DoCmd.SendObjest and it works great!! BUT if the user
does not send the E-Mail they get an Error msg with the
debug or End. I would like it so the user does not get
this Error Msg. Can I just have a Msg Box that would
comes up with "No E-mail Sent"??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top