Results 1 to 2 of 2
  1. #1
    Sven is offline Novice
    Windows XP Access 2007
    Join Date
    Jul 2011
    Posts
    1

    Complete newb: Query help needed


    Hello all, new to the site and (due to changes at work) new to Access and in need of some expert perspective. Hooray for the new economy!

    I am building a very primitive db to house resource forecasts. I have a basic table structure now and am looking to run a query (and subsequently base reports off these queries).

    Here are my specifics:

    Table A: Resource Forecasts
    Fields: Resource Name (related to Table B)
    Job ID (related to Table C [not involved in this query])
    August Hours

    Table B: Resource Details
    Fields: Hourly Rate

    Query goal:
    To show all forecasts that have hours predicted for August, detailing the resources' names and their rates (for calculating spend)

    So building my query, i thought i had it correct. Created the join, detailed the fields I wanted and how to filter. The problem comes in that it will NOT pull over the Hourly rate from Table B.

    Here is the SQL out of Access:
    SELECT [Resource Forecasts].[Resource Name], [Resource Forecasts].[Clarity ID], [Resource Forecasts].[October 2011], Resources.[Hourly Rate]
    FROM Resources RIGHT JOIN [Resource Forecasts] ON Resources.[Resource Name] = [Resource Forecasts].[Resource Name]
    WHERE ((([Resource Forecasts].[October 2011]) Is Not Null))
    ORDER BY [Resource Forecasts].[Resource Name];


    Any help would be GREATLY appreciated, I know I am just doing some very basic thing wrong that is stupidly easy to correct.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,622
    Need clarification. You want August hours but filter is on field called October 2011 (not shown in the schema although August Hours is). You are joining with table called Resources but your schema is Resource Details and Resource Name does not show as a field in this table.

    That you have fields named for months indicates tables are not normalized.

    Provide sample data in a post or attach file (Access project or Excel spreadsheet).

    BTW, advise not to include spaces in names.
    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. Query help needed on a one to many sum
    By devphreak in forum Queries
    Replies: 3
    Last Post: 02-25-2011, 10:49 AM
  2. Help with Query iif statement for newb.
    By edmcgee in forum Queries
    Replies: 5
    Last Post: 01-25-2011, 10:27 AM
  3. Help needed with Query...
    By showmak in forum Queries
    Replies: 4
    Last Post: 09-10-2010, 07:23 PM
  4. Newb- Trying to use images and such.
    By TriAdX in forum Access
    Replies: 3
    Last Post: 08-18-2009, 10:07 AM
  5. Newb Question
    By smokeyvol in forum Access
    Replies: 0
    Last Post: 01-14-2009, 08:28 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