Results 1 to 2 of 2
  1. #1
    2 Star Lounger
    Join Date
    Aug 2005
    Posts
    132
    Thanks
    0
    Thanked 0 Times in 0 Posts

    calclulated field in query (Access 2000)

    Can i build in the query a new field with the folloiwing

    condition:

    The new field should be called prices and must calculate as

    follows

    if size = 250, price = endprice else price = grocery



    size,endprice and grocery are fields in the query.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: calclulated field in query (Access 2000)

    In the first empty column in the query design grid, enter:
    <code>
    prices: iif([size]=250,[endprice],[grocery])
    </code>
    Note: please don't press the Enter key halfway lines in a post. It makes your questions hard to read. The browser will take care of wrapping the text automatically.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •