Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2012
    Posts
    23

    Query where values are compares

    Dear all,



    Ik have the following query (see attachment). I want to include in this query something through which I can compare the values of the first "type EPE" and the values after it ("EPE gemiddeld" and "EPE_laag").

    So certain values from different categories have to be compared against a norm. If the item is from category x and values are above the norm of category x (these values are outlined in the table) value 1 has to be showed if below it has to show value 2. I want to do this for 4 different categories with norm values.

    Anybody help on how i can i accomplish this?

    Dear regards, Marc
    Attached Files Attached Files

  2. #2
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    so you want a formula to compare fields

    usually that's done with an IIF statement (immediate if) or formula in a quey. For instance if you wanted to see if EPE_LAAG was greater than EPE_LAAG_NORM you'd have something like:

    LAAGCheck: iif(EPE_LAAG > EPE_LAAG_NORM, "LAAG > NORM", "LAAG <= NORM")

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

Similar Threads

  1. Replies: 2
    Last Post: 11-12-2012, 03:52 AM
  2. Replies: 8
    Last Post: 10-22-2012, 07:43 PM
  3. Replies: 2
    Last Post: 05-17-2012, 03:52 PM
  4. Replies: 34
    Last Post: 02-15-2012, 05:17 AM
  5. Replies: 1
    Last Post: 11-19-2010, 09:08 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