send email

  • Thread starter Thread starter -Obama
  • Start date Start date
-Obama,
here is an example that emails an error log back to me

DoCmd.SendObject acReport, "rptErrorLog", "SnapshotFormat(*.snp)",
"MyEmailAddress", , , "Log from MyApp", "Log sent on " & Date, False

Jeanette Cunningham
 
How an access code in Module? Thanks.


Jeanette Cunningham said:
-Obama,
here is an example that emails an error log back to me

DoCmd.SendObject acReport, "rptErrorLog", "SnapshotFormat(*.snp)",
"MyEmailAddress", , , "Log from MyApp", "Log sent on " & Date, False

Jeanette Cunningham
 
This is access code from a module that goes with a form.

Jeanette Cunningham
 
docmd.SendObject(acSendNoObject,,acFormatTXT,
"(e-mail address removed)",,,"testing","testing"," "," ")

I tried to run the above code in debug window window. It gives me an error:

Compiled Error:

Expected:=


Can you please help? Thanks.
 
Hi Obama,

Is there a reason why you need to code this? If all your looking to do is
pull up a blank email when you click a button on your form, just use a macro.
It will take you a few minutes to create with no errors because Access is
doing all the coding. If fact after you complete and install it to your
button, you can convert it to VBA Code to see what it looks(but do it on a
test or copy database).
 
I want to create and send email based on certain condition met. Therefore I
need to use access code. I am not sure if your method works for my
situation. Please help. Thanks.
 
It would help us if you posted the code you have already that checks for the
conditions.

Jeanette Cunningham
 

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

Back
Top