Results 1 to 7 of 7
  1. #1
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65

    Smile Looking to Create an Email button based on a list criteria

    Hi Guys,

    I have a form that is used by 7 business units and email recipients are different. As opposed to creating a form with 7 buttons and writing 'select your business unit', would there be a fairly straight forward way to have a dropdown for business unit and have email button appear for that selection only? And if it's a no-go, any other suggestions would be appreciated!

    Thanks



    Eric

  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,521
    One option would be to have a combo box with the email addresses of the units. The user would pick one and a button could use that address when creating the email. At its simplest:

    docmd.SendObject acSendNoObject,,,Me.ComboName,...
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Thanks Paul. Would this work if there were a few email addresses and some on CC for each email?

  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,521
    It could, it would just get more complicated. Are they in a table or something? How does choosing a unit determine which address(es) to use?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    I have the emails set up as macros now. So the business unit emails a query that shows a proposed project for approval. Some recipients are the same, some different. I don't want to overcomplicate it. I might just use a tab control so they only see one business unit at a time on the form.

  6. #6
    Join Date
    May 2018
    Location
    Living in Scotland UK
    Posts
    1,566
    Hi
    Can you upload a zipped copy of the database?
    You can PM me if you need further help.
    Good Reading https://docs.microsoft.com/en-gb/off...on-description

  7. #7
    DefinitelyMaybe is offline Advanced Beginner
    Windows 10 Access 2002
    Join Date
    Dec 2020
    Posts
    65
    Hi Mike
    I've had issues emailing due to the company firewall. If I can't I'll create a version with similar situation. I'll post soon. Thanks

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

Similar Threads

  1. Create a send email button.
    By karwos in forum Access
    Replies: 0
    Last Post: 04-18-2019, 08:27 AM
  2. Create button to send email based on data in tbl
    By kiwikiki718 in forum Programming
    Replies: 12
    Last Post: 04-09-2017, 05:31 PM
  3. Replies: 16
    Last Post: 08-13-2016, 11:44 AM
  4. Replies: 5
    Last Post: 05-07-2014, 09:25 AM
  5. Replies: 2
    Last Post: 02-04-2010, 10:45 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