Results 1 to 3 of 3
  1. #1
    snehal0909 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2011
    Posts
    2

    Email Each Invoice to each customer

    Hi All,



    I have an invoicing database, below is what my database has.

    tblInvoices
    InvoiceID
    CustomerID
    InvoiceAmount
    InvoiceDate

    tblcustomers
    CustomerID
    Company
    BillingEmail1
    BillingEmail2

    rptInvoice

    frmAllInvoices


    I have a list of invoices in a datasheet form (fromAllInvoices). I filter them to show only this month's invoices. I Also have a button that says EMAIL INVOICES.
    What code do I attach to that button so it automatically emails SELECTED (or filttered in my case) invoices to each customers. It should pick up email address automatically from Customers table.

    Any help is appreciated.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,644
    Use VBA code to open recordset of customers, loop through the recordset and email filtered report to each customer.

    Common topic. Search forum and/or Google.

    Review
    https://www.accessforums.net/reports...ame-21678.html
    https://www.accessforums.net/access/...ate-21081.html
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Join Date
    Jun 2012
    Location
    USA
    Posts
    1

    Oh yeah,

    I will share it to my blogs.

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

Similar Threads

  1. Replies: 1
    Last Post: 12-24-2011, 08:48 AM
  2. Replies: 4
    Last Post: 04-13-2011, 10:11 AM
  3. Customer Invoice Strategy
    By ChuckColeman1812 in forum Database Design
    Replies: 2
    Last Post: 03-12-2011, 09:00 AM
  4. send email to email addresses in database?
    By cnstarz in forum Access
    Replies: 5
    Last Post: 03-02-2011, 09:46 PM
  5. email report ie invoice
    By Nike21 in forum Import/Export Data
    Replies: 1
    Last Post: 10-26-2010, 10:51 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