Results 1 to 3 of 3
  1. #1
    MLK is offline Novice
    Windows 8 Access 2007
    Join Date
    May 2020
    Posts
    6

    Lookup payment values to Charge Table

    Dear Team,

    Kindly look into the attached acdb. It has two tables and two Queries . Charge table has charge amounts for each Visit and payment table has payments which received . Payment table does not have payments for each visit. It has payments which received only.


    • My requirement is to lookup payments to charge table. if a payment not received it should display as "0" in result table.
    • Query 1 created for Sum payments.
    • Query 2 created to combine Query 1 and Charge table.
    • But it doesn't give the result what i need.
    • if there are no payment received it doesn't show in Query 2 result ( Example Visit # 4)


    Could you please help me to get the result as shown below. i want to show visit #4 as "0" payment line.

    I need result like this.

    Click image for larger version. 

Name:	Result 3.jpg 
Views:	10 
Size:	38.5 KB 
ID:	41814


    Thank you,
    MLK.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,770
    Change query2 to RIGHT JOIN instead of INNER.
    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
    MLK is offline Novice
    Windows 8 Access 2007
    Join Date
    May 2020
    Posts
    6
    wow, thank you so much.

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

Similar Threads

  1. Replies: 5
    Last Post: 05-06-2020, 04:49 AM
  2. Using Lookup to select table values
    By RogerMcElroy in forum Access
    Replies: 15
    Last Post: 04-16-2020, 05:08 PM
  3. Replies: 3
    Last Post: 06-02-2017, 03:49 PM
  4. Lookup table values
    By haywam59 in forum Access
    Replies: 2
    Last Post: 01-23-2016, 10:16 AM
  5. Replies: 11
    Last Post: 11-28-2015, 10: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