Page 2 of 2 FirstFirst 12
Results 16 to 24 of 24
  1. #16
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652

    The LEFT JOIN should be pulling up the stores. Is it not? You should be able to use the Nz() function to show a zero for the ones that don't have records.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  2. #17
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    No, ALL the stores aren't coming up, only those that have that specific merchant #. How do I execute the nz() function

  3. #18
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    Let me try to better explain. I have a query so that I can get all the information for merchant 66771 by Store #. However all the stores don't necessarily have merchant # 66771 attached to them. If they DON'T have merchant 66771 I still want the store # to show up, but show 0 values for the rest of the columns.

  4. #19
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    Can you post a sample db here to play with?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #20
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    www.mrmet.net/test.rar

    If you run the query and enter in "05/13/2012" for example you will see it returns only 690 records for merchant 66771 however I want ALL the stores to show up and if merchant 66771 doesn't exist for those stores just return 0s for the rest of the columns.

  6. #21
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    Quote Originally Posted by mjdizenzo View Post
    www.mrmet.net/test.rar

    If you run the query and enter in "05/13/2012" for example you will see it returns only 690 records for merchant 66771 however I want ALL the stores to show up and if merchant 66771 doesn't exist for those stores just return 0s for the rest of the columns.
    anyone able to figure this out?

  7. #22
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,652
    I don't have software to unzip an rar file, and don't care to install it. I also don't like to go to unknown sites to download files, which is why I asked if you could post it here.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #23
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    Quote Originally Posted by pbaldy View Post
    I don't have software to unzip an rar file, and don't care to install it. I also don't like to go to unknown sites to download files, which is why I asked if you could post it here.
    It won't let me upload a .zip file and the .mdb is too large.

  9. #24
    mjdizenzo is offline Novice
    Windows XP Access 2007
    Join Date
    Jun 2012
    Posts
    14
    ok try this http://www.mrmet.net/access/ the file is called test.mdb and this is hosted on my website

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Sums in First Column of Crosstab
    By JRINC in forum Queries
    Replies: 1
    Last Post: 10-06-2011, 02:47 PM
  2. Replies: 1
    Last Post: 07-10-2011, 11:20 PM
  3. Replies: 2
    Last Post: 05-05-2011, 12:41 PM
  4. combine two fields into one
    By kbremner in forum Programming
    Replies: 1
    Last Post: 10-29-2010, 07:40 AM
  5. Combine two fields, Null fields involved
    By yes sir in forum Access
    Replies: 9
    Last Post: 10-03-2010, 09:20 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