dbTalk Databases Forums  

Is this formula do-able?

comp.database.ms-access comp.database.ms-access


Discuss Is this formula do-able? in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Cher
 
Posts: n/a

Default Is this formula do-able? - 12-19-2003 , 10:39 AM






I have two columns, one is Grant Award, the other is Project Status.
The Project Status could be complete, active, or withdrawn. At the
bottom of the report, I want a field for Total Amount Committed. This
would need to be the Total Grant Awards, less the Grant Award if the
Project Status is Withdrawn. Withdrawn projects have had the funds
reallocated. Can you help?

Reply With Quote
  #2  
Old   
mharness
 
Posts: n/a

Default Re: Is this formula do-able? - 12-25-2003 , 06:42 AM






Hey Cher,

Would it help if you had three Grant Award columns instead of just one--one
for each Project Status. Actually I suppose you could have four if you
wanted to keep the current one too.

Anyway, you could run totals for each of these columns in your report footer
and do whatever math you want using whichever total you want. If you don't
want to see the new columns in your report make them not visible.

Get your columns in the query with something like CompleteGrantAwardAmount:
IIF([Project Status]='complete', [Grant Award],0) for each of the Project
Status.

Mike

"Cher" <ctcdtm (AT) juno (DOT) com> wrote

Quote:
I have two columns, one is Grant Award, the other is Project Status.
The Project Status could be complete, active, or withdrawn. At the
bottom of the report, I want a field for Total Amount Committed. This
would need to be the Total Grant Awards, less the Grant Award if the
Project Status is Withdrawn. Withdrawn projects have had the funds
reallocated. Can you help?



Reply With Quote
  #3  
Old   
Scott McDaniel
 
Posts: n/a

Default Re: Is this formula do-able? - 12-25-2003 , 04:50 PM



If you can have multiple Awards for a particular Project, you should house
this data in a separate table and link it back to the Parent table. Housing
this data over multiple columns violates data normalization practices and
can lead to troubles. What happens when you add a fifth Award, or a sixth
.... you would have to add a new column each time you needed to. Instead,
with a one-to-many relationship between the Projects table and Awards table,
you can add as many Awards as necessary.
--
Scott McDaniel
CS Computer Software
www.thedatabaseplace.net

"mharness" <mike_harness (AT) hotmail (DOT) com> wrote

Quote:
Hey Cher,

Would it help if you had three Grant Award columns instead of just
one--one
for each Project Status. Actually I suppose you could have four if you
wanted to keep the current one too.

Anyway, you could run totals for each of these columns in your report
footer
and do whatever math you want using whichever total you want. If you
don't
want to see the new columns in your report make them not visible.

Get your columns in the query with something like
CompleteGrantAwardAmount:
IIF([Project Status]='complete', [Grant Award],0) for each of the Project
Status.

Mike

"Cher" <ctcdtm (AT) juno (DOT) com> wrote in message
news:d4c8d2f4.0312190839.464cb4dd (AT) posting (DOT) google.com...
I have two columns, one is Grant Award, the other is Project Status.
The Project Status could be complete, active, or withdrawn. At the
bottom of the report, I want a field for Total Amount Committed. This
would need to be the Total Grant Awards, less the Grant Award if the
Project Status is Withdrawn. Withdrawn projects have had the funds
reallocated. Can you help?





Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.