If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
calculated fields in query in secondary calculation
I have a query that calculates two fields (YTD Budget and YTD Actual). I
have a secondary calculation named "Variance" within the query that takes these two fields and subtracts them to get a variance. This works fine until I add criteria to the "Variance" field, asking to only return variances $50,000. Once I add the criteria, I then get a box looking for what YTD Budget equals and then what YTD Actual equals (it's ignoring the primary calculation I have in each of these fields). Any ideas on what I might be doing wrong? |
#2
|
|||
|
|||
On Mon, 11 Apr 2005 18:27:02 -0700, pruaccess
wrote: I have a query that calculates two fields (YTD Budget and YTD Actual). I have a secondary calculation named "Variance" within the query that takes these two fields and subtracts them to get a variance. This works fine until I add criteria to the "Variance" field, asking to only return variances $50,000. Once I add the criteria, I then get a box looking for what YTD Budget equals and then what YTD Actual equals (it's ignoring the primary calculation I have in each of these fields). Any ideas on what I might be doing wrong? Just trying to reuse a calculated field in a further calculation. No can do! Either base a second query on the first query, or recapitulate the expression for [YTD Budget] and [YTD Actual] in the expression for Variance. John W. Vinson[MVP] |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Moving from xBase/Clipper | [email protected] | New Users | 1 | February 3rd, 2005 07:25 PM |
Here's a shocker | Mike Labosh | General Discussion | 2 | October 26th, 2004 05:04 PM |
Union Query Not Returning A Value | Jeff G | Running & Setting Up Queries | 2 | October 19th, 2004 05:47 PM |
Query to join records form 2 databases | bdehning | General Discussion | 5 | August 9th, 2004 03:09 PM |
Can't export calculated fields to Excel | Sharon Caspers | Setting Up & Running Reports | 0 | May 26th, 2004 08:31 PM |