Results 1 to 2 of 2
  1. #1
    emberendt is offline Novice
    Windows 7 64bit Access 2007
    Join Date
    Mar 2013
    Posts
    1

    Access 2007 AP Report

    Good morning. I found this forum this morning and I hope someone can help me out. My company is looking for a report that will list purchase orders and invoices paid against them. The PO amounts and invoice amounts are housed in the same table but in separate columns. There are multiple invoices paid against every PO. In order see which invoices were paid on each PO, there is a column for PO number. The PO number gets entered in on every line. I have tried to set up a query that will deduct the invoice amount from the PO. The problem I am running into is when the query runs the PO amount pulls in for every time an invoice is paid against it. For example PO123 is $30,000 and the following invoices are paid against it: INV 3 - $5,000, INV4 - $5,000 and INV5 - $5,000. The query will return $90,000 for the PO amount and a cumulative total for the invoices of $15,000. What do I need to do? Any help would be greatly appreciated. Thank you.

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Try:

    First do an aggregate query to sum the invoices by PO Number. Then join that query to the PO table.

    If you need to see the invoice details then do report based on a normal query that simply joins the two tables. Use report Grouping and Sorting to arrange the records. Have a group set for the PO number and put PO data in group header. List the invoice data in the Detail section. Textbox in group footer to calculate difference. [POAmount]-Sum(InvoiceAmount)
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 03-22-2012, 07:14 PM
  2. Ms Access 2007 report export to excel 2007
    By Stan2man in forum Access
    Replies: 6
    Last Post: 11-23-2011, 01:24 PM
  3. Replies: 5
    Last Post: 09-22-2011, 02:10 PM
  4. Access 2007 Report footer
    By mab in forum Access
    Replies: 1
    Last Post: 05-16-2011, 09:49 AM
  5. Report w/ Subreport locks up Access 2007
    By guyc in forum Reports
    Replies: 4
    Last Post: 05-12-2011, 09:22 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