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  

Using Calculated Fields to Calculate other fields



 
 
Thread Tools Display Modes
  #1  
Old September 16th, 2005, 08:43 PM
Clint Marshall
external usenet poster
 
Posts: n/a
Default Using Calculated Fields to Calculate other fields

In Access XP, I'm trying to use the values of several calculated fields to
create additional calculated fields, all within one query.

Is there a way to do this? Access currently doesn't recognize the names of
the calculated fields created earlier in the query.

Thanks!


  #2  
Old September 16th, 2005, 08:55 PM
Rick B
external usenet poster
 
Posts: n/a
Default

Just include the actual formula.

If Z = A+B
and Y = D+G

and X = Z-Y (using other calculated values)

Then use...

X = (A+B) - (D+G)




--
Rick B



"Clint Marshall" wrote in message
...
In Access XP, I'm trying to use the values of several calculated fields to
create additional calculated fields, all within one query.

Is there a way to do this? Access currently doesn't recognize the names

of
the calculated fields created earlier in the query.

Thanks!




  #3  
Old September 16th, 2005, 09:12 PM
Clint Marshall
external usenet poster
 
Posts: n/a
Default

Some of my formulas are dreadfully long. Is there any other way to include
the value I've already calculated?

eg:

Thanks!

RentPerRSF:
((nz([RentAndCAMAmt],0)+nz([RentInclCAMAmt],0)+nz([CAMAmt],0))+([Tax
Amount]-[Base Full Year RE Taxes]+[Special Assessment]-[Base Full Year
Special Assessment])*nz([Proportionate Share],0))/[sq ft per lease]
"Rick B" Anonymous wrote in message
...
Just include the actual formula.

If Z = A+B
and Y = D+G

and X = Z-Y (using other calculated values)

Then use...

X = (A+B) - (D+G)




--
Rick B



"Clint Marshall" wrote in message
...
In Access XP, I'm trying to use the values of several calculated fields
to
create additional calculated fields, all within one query.

Is there a way to do this? Access currently doesn't recognize the names

of
the calculated fields created earlier in the query.

Thanks!






  #4  
Old September 16th, 2005, 09:15 PM
[MVP] S.Clark
external usenet poster
 
Posts: n/a
Default

With a subquery, the answer is probably yes. I try to avoid subqueries, as
it's difficult to verify, debug, and maintain.

I typically make a base query with the first calcs, then a 2nd query to do
the addtional calcs.

This is typical with percentages. Get the 'whole' in one query and the parts
in another, linking the 'whole' query to it.

--
Steve Clark, Access MVP
FMS, Inc.
Call us for all of your Access Development Needs!
1-888-220-6234

www.fmsinc.com/consulting

"Clint Marshall" wrote in message
...
In Access XP, I'm trying to use the values of several calculated fields to
create additional calculated fields, all within one query.

Is there a way to do this? Access currently doesn't recognize the names
of the calculated fields created earlier in the query.

Thanks!



  #5  
Old September 16th, 2005, 09:32 PM
Clint Marshall
external usenet poster
 
Posts: n/a
Default

Thanks.
Not the answer I was hoping for, but at least I know where I stand.

-Clint

"[MVP] S.Clark" wrote in message
...
With a subquery, the answer is probably yes. I try to avoid subqueries,
as it's difficult to verify, debug, and maintain.

I typically make a base query with the first calcs, then a 2nd query to do
the addtional calcs.

This is typical with percentages. Get the 'whole' in one query and the
parts in another, linking the 'whole' query to it.

--
Steve Clark, Access MVP
FMS, Inc.
Call us for all of your Access Development Needs!
1-888-220-6234

www.fmsinc.com/consulting

"Clint Marshall" wrote in message
...
In Access XP, I'm trying to use the values of several calculated fields
to create additional calculated fields, all within one query.

Is there a way to do this? Access currently doesn't recognize the names
of the calculated fields created earlier in the query.

Thanks!





 




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
Using calculated fields in multiple queries Linguist Running & Setting Up Queries 6 May 27th, 2005 02:09 PM
Calculated Fields in New records Sarah Stockton Using Forms 7 May 26th, 2005 08:27 PM
calculated fields and IIF function eric Running & Setting Up Queries 2 May 12th, 2005 06:33 AM
calculated fields in query in secondary calculation pruaccess Running & Setting Up Queries 1 April 12th, 2005 03:48 AM
HELP: Update 1 table with calculated fields from another table Samora Running & Setting Up Queries 0 May 23rd, 2004 05:16 PM


All times are GMT +1. The time now is 06:30 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.