supportservice
Technical User
- Mar 12, 2012
- 63
I've searched and searched and can't seem to really find what I'm looking for.
If there is a code out there to achieve the following please direct me! I apologize for the lack of finding it otherwise :-(
I have a database.
There is a macro that extracts data out that creates a table "Emailing-OpenInvoices".
There's a report "Emailing-OpenInvocies" formatted listing all the open invoices by Vendor. Each page is a new vendor.
Each lists the invoice number, due date, invoice amount then at the bottom the total of all invoices per Vendor.
** What I need assistance with how to write code to send each Vendor their list of open invoices and total amount in the email message.
Details on the report includes the following. It is Grouped on VendorNo. Each page is a different Vendor and lists the Vendor's open invoices.
NOTE: If the total for the Vendor is $0 I would like it to ignore / suppress it.
Here's a snippet of the data in the table:
If there is a code out there to achieve the following please direct me! I apologize for the lack of finding it otherwise :-(
I have a database.
There is a macro that extracts data out that creates a table "Emailing-OpenInvoices".
There's a report "Emailing-OpenInvocies" formatted listing all the open invoices by Vendor. Each page is a new vendor.
Each lists the invoice number, due date, invoice amount then at the bottom the total of all invoices per Vendor.
** What I need assistance with how to write code to send each Vendor their list of open invoices and total amount in the email message.
Details on the report includes the following. It is Grouped on VendorNo. Each page is a different Vendor and lists the Vendor's open invoices.
Code:
VendorName Hemet Valley Pipe & Suppl VendorNo 0000098
InvoiceDueDate InvoiceNo InvoiceAmt
xx/xx/xxxx xxxxxxx $xxx.xx
xx/xx/xxxx xxxxxxx $xxx.xx
xx/xx/xxxx xxxxxxx $xxx.xx
TOTAL: Sum([InvoiceAmt])
NOTE: If the total for the Vendor is $0 I would like it to ignore / suppress it.
Here's a snippet of the data in the table:
Code:
VendorNo VendorName InvoiceNo InvoiceDate InvoiceDueDate TermsCode InvoiceAmt DiscountAmt NetInvoice EmailAddress
0000098 Hemet Valley Pipe & Suppl 145701 8/7/2012 9/10/2012 89 $150.92 $0.00 $150.92 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145524 8/9/2012 9/10/2012 89 $258.94 $0.00 $258.94 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145525 8/9/2012 9/10/2012 89 $433.40 $0.00 $433.40 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145526 8/9/2012 9/10/2012 89 $88.42 $0.00 $88.42 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145567 8/3/2012 9/10/2012 89 $131.14 $0.00 $131.14 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145633 8/2/2012 9/10/2012 89 $17.49 $0.00 $17.49 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145652 8/3/2012 9/10/2012 89 $166.80 $0.00 $166.80 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145654 8/3/2012 9/10/2012 89 $36.43 $0.00 $36.43 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145657 8/6/2012 9/10/2012 89 $11.69 $0.00 $11.69 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145522 8/9/2012 9/10/2012 89 $95.83 $0.00 $95.83 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145698 8/8/2012 9/10/2012 89 $504.31 $0.00 $504.31 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145837 8/9/2012 9/10/2012 89 $192.71 $0.00 $192.71 service@aelllissolutions.com
0000098 Hemet Valley Pipe & Suppl 145684 8/7/2012 9/10/2012 89 $384.10 $0.00 $384.10 service@aelllissolutions.com
0000198 PETE'S ROAD SERVICE 687588-00 8/14/2012 9/10/2012 88 $145.00 $0.00 $145.00 angelell@yahoo.com
0000199 E.M.W.D. (Dump Fees) 2012JULY 8/3/2012 8/20/2012 89 $63.24 $0.00 $63.24 angel@angel-greg.com
0000199 E.M.W.D. (Dump Fees) 2012JULY' 7/31/2012 7/31/2012 89 ($63.24) $0.00 ($63.24) angel@angel-greg.com