A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

calculated fields in query in secondary calculation



 
 
Thread Tools Display Modes
  #1  
Old April 12th, 2005, 02:27 AM
pruaccess
external usenet poster
 
Posts: n/a
Default 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  
Old April 12th, 2005, 03:48 AM
John Vinson
external usenet poster
 
Posts: n/a
Default

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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


All times are GMT +1. The time now is 07:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.