Results 1 to 4 of 4
  1. #1
    starhannes is offline Novice
    Windows 7 Access 2007
    Join Date
    Apr 2010
    Posts
    15

    Basing criteria on another Field

    Hi all,



    Ok i will try to make my question as clear as possible.

    I made a query... now, to simplify, lets say i have 2 fields in my query.

    Field: Required_Amount ................. Actual_Amount
    Table: Instructions ....................... Storage


    Now lets say i want to find all the "objects" where i have more Actual amount than required amount : where Actual_Amount > Required Amount

    How do i insert this into the criteria?

    Thanks

  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,521
    I can't tell if those are in different tables? In any case, generally:

    SELECT Field1, Field2
    FROM TableName
    WHERE Field1 > Field2

    In design view, you'd put

    > Field2

    in the criteria of Field1
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    starhannes is offline Novice
    Windows 7 Access 2007
    Join Date
    Apr 2010
    Posts
    15
    yeah they were 2 different tables.. THanks that solved it thanks.. have another issue but its not related to this question so i hope its all good if i start another thread

    thanks!

  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,521
    Happy to help, and no problem starting a new thread for a new issue (probably better actually). Welcome to the site by the way!
    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. Run Report with Prompt for Field Criteria
    By diane802 in forum Reports
    Replies: 4
    Last Post: 01-15-2010, 02:31 AM
  2. Query multiple field & criteria
    By fua in forum Access
    Replies: 2
    Last Post: 11-04-2009, 08:22 PM
  3. Basing one combo box on another in a subform
    By LFosterAccess in forum Forms
    Replies: 8
    Last Post: 10-07-2009, 01:19 PM
  4. query - criteria based on another row field value
    By techexpressinc in forum Queries
    Replies: 1
    Last Post: 05-29-2009, 04:17 PM
  5. Setting criteria in a calculated date field
    By SteveReberger in forum Access
    Replies: 0
    Last Post: 10-29-2008, 06:58 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