Results 1 to 4 of 4
  1. #1
    mick3911 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2013
    Location
    Wirral, UK
    Posts
    66

    EmailDatabaseObject

    Hi all,

    I’m hoping that you can help me a predicament that I have.

    I have built a DB for my sports club listing equipment andequipment on loan.

    To cut a long story short, I have created a report from a querywhich I can e-mail using the e-mail address in a text box by a command buttonusing the macro EmailDatabaseObject.

    See my macro design in the image below.

    Click image for larger version. 

Name:	Macro.jpg 
Views:	22 
Size:	31.9 KB 
ID:	35000


    This works well but I sometimes need to e-mail the report tomore than one e-mail address but I am having a problem with the macro withregards to the ‘To’ field in the macro.

    My question is how do I separate two e-mail address in themacro? I have tried , : ; / . but keep getting an invalid value message.

    The only symbol that the macro will accept is & but thiswill not separate the addresses in Outlook. See below for Outlook image.

    Click image for larger version. 

Name:	Email.jpg 
Views:	20 
Size:	37.6 KB 
ID:	35001


    Can anyone help please.

  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,518
    Try

    =Email & ";" & Email1
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mick3911 is offline Advanced Beginner
    Windows 10 Access 2016
    Join Date
    Feb 2013
    Location
    Wirral, UK
    Posts
    66
    Hi Paul, That's great, much appreciated. I have been pulling my hair out trying to sort this out. Many thanks

  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,518
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

Please reply to this thread with any new information or opinions.

Similar Threads

  1. EmailDatabaseObject Help
    By jimaccessnovice in forum Macros
    Replies: 4
    Last Post: 02-27-2018, 04:51 PM
  2. EMailDatabaseObject Hangs
    By bragaglia in forum Macros
    Replies: 2
    Last Post: 02-03-2017, 02:44 PM
  3. EmailDatabaseObject Automate TO Field
    By Tlo in forum Macros
    Replies: 3
    Last Post: 06-24-2016, 11:05 AM
  4. emaildatabaseobject with date?
    By vicsaccess in forum Import/Export Data
    Replies: 5
    Last Post: 10-19-2015, 05:55 PM
  5. EmailDatabaseObject in Macro
    By Kmoney in forum Programming
    Replies: 5
    Last Post: 01-13-2012, 03:14 PM

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