Results 1 to 4 of 4
  1. #1
    mpreston14 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    41

    Query not providing correct number of entries

    The saga continues with my database...

    I have imported several files into a table and using an append query upload those to a master table with a score calculated in the query as well.

    When I run the query it only is giving me 1711 of 1827 known records.

    I have looked at format and all the files that are text are text and numbers, numbers, dates, dates etc so I am stumped.

    here is the SQL from the query:

    INSERT INTO Officiated_Matches_T ( Points )
    SELECT Import_SL.*, [Match].[MatchMultiplier]*[League].[LeagueMultiplier]*[Position].[PositionMultiplier] AS Points


    FROM [Match] INNER JOIN (Referee_T INNER JOIN ([Position] INNER JOIN (League INNER JOIN Import_SL ON League.League = Import_SL.League) ON Position.Position = Import_SL.Position) ON (Referee_T.LastName = Import_SL.LastName) AND (Referee_T.FirstName = Import_SL.FirstName)) ON Match.Match = Import_SL.Match;

    I am sure it is something easy but the I look at it and rebuild over and over the more frustrated I get....

    Thank you in advance for your help!

    Mike

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Almost certainly an issue with the joins, like the main table has a position that the position table doesn't have, or referee, etc.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    mpreston14 is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Apr 2013
    Posts
    41
    It turns out it was a combination of joins and the data itself. The data files contained entries from another state that did not match our referee listing. I created a query to find the mismatches and then the matches. I then made changed the joins and it worked spot on...it took way to long to figure that out...sometimes when you work on something too long you just cant see the easiest solution!

    SOLVED.

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Glad you got it sorted out.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 8
    Last Post: 08-16-2012, 09:04 AM
  2. Replies: 4
    Last Post: 03-05-2012, 10:20 AM
  3. Replies: 9
    Last Post: 06-26-2011, 09:14 PM
  4. Form with an unkonwn number of entries?
    By bakkouz in forum Forms
    Replies: 3
    Last Post: 02-17-2011, 12:56 AM
  5. Replies: 3
    Last Post: 05-25-2010, 02:16 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