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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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
|
|||
|
|||
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 | |
|
|
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 |