Page 1 of 2 12 LastLast
Results 1 to 15 of 21
  1. #1
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167

    send Email MSAccess2016

    Is there a way to create a macro that will open an outlook email and populate the TO, SUBJECT and MESSAGE fields without having to use the EMailDatabaseObject?
    i don't want to attach an object type or format etc to the email i only want to populate these 3 fields. Currently i'm using the EmailDatabaseObject macro but it ask for what type of file i wish to attach (and i don't want to attach anything?)

    thanks,

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I don't have 2016 on this machine, but isn't there a "Send no object" option? Or won't leaving the object type and name arguments blank worked? I don't use macros but just tested in 2010 and leaving them blank doesn't prompt for them.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    ranman256's Avatar
    ranman256 is offline VIP
    Windows Vista Access 2010 32bit
    Join Date
    Apr 2014
    Location
    Kentucky
    Posts
    9,550
    docmd.SendTo ....

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by ranman256 View Post
    docmd.SendTo ....
    Is that something new?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    sorry but i don't understand what to do with "docmd.SendTo..."
    please explain

  6. #6
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    I have 2016 version but rarely use macros. Created one to test this - it does not ask me for an object name or type to send. Perhaps you have something in the 'name' property field, or have selected an object type without specifying a name? Outlook was already open, but I don't think that would make any difference to the behaviour you're describing.

    It's a very limited method for sending emails, and I had to deal with the Outlook security 5 second warning and delay, which is another reason why not many of us here would use a macro for sending email.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  7. #7
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    thanks, are you using the EMailDatabaseObject command to create the email? If not what is the macro command you used?

  8. #8
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    I would say 'yes'...

    Click image for larger version. 

Name:	2019-01-14.png 
Views:	22 
Size:	38.9 KB 
ID:	36933
    Ignore that I replaced my email address with asterisks********
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  9. #9
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    Here's what mine looks like...Click image for larger version. 

Name:	Capture1.JPG 
Views:	23 
Size:	28.6 KB 
ID:	36934

    it is returning the following options:
    Click image for larger version. 

Name:	Capture2.JPG 
Views:	22 
Size:	29.7 KB 
ID:	36935

    i am trying to just send the email without any attachment

  10. #10
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    I added form references like yours and still no prompt beyond the security message. I even tried adding a few blank spaces to the object name option to see if it would ask for the object type but no difference.
    Not being big on macros, all I can think of is to convert the process to code or start over; the macro might be corrupt.

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    What happens if you change the edit message argument to Yes?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    Micron is online now Very Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    13,422
    Me? Nothing except that Outlook opens a message window so it can be edited. Otherwise it just sends it.

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Quote Originally Posted by Micron View Post
    Me? Nothing except that Outlook opens a message window so it can be edited. Otherwise it just sends it.
    No, fishhead. I got no prompts either, just taking shots in the dark.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  14. #14
    fishhead is offline Competent Performer
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2015
    Posts
    167
    Quote Originally Posted by pbaldy View Post
    No, fishhead. I got no prompts either, just taking shots in the dark.
    I get the same results - works fine just let's user edit the message

  15. #15
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    By works fine does that mean no prompts for file type?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Page 1 of 2 12 LastLast
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 07-12-2018, 05:38 AM
  2. Replies: 3
    Last Post: 12-28-2015, 04:11 PM
  3. Replies: 5
    Last Post: 09-14-2015, 07:24 AM
  4. Replies: 5
    Last Post: 05-07-2014, 09:25 AM
  5. Replies: 4
    Last Post: 04-13-2011, 10:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums