ABreeze
Registered User.
- Local time
- Today, 15:58
- Joined
- Mar 15, 2002
- Messages
- 22
Can somebody please look at my calculation and tell me why it doesn't work.
tblPool stores a total amount of a grant
frmGrantRequest contains details of an application
frmGrantDetails is a subform on this form whose info gets stored in tblGrantDetails. This subform stores information on projects relevant to an application. An application may have several projects. I have totalled the amount awarded of each project to get an application amount.
What I need to do now is total all of the application amounts for a particular pool and subtract it from the PoolAmount.
Below is the formula as it is now but it totals all of the application totals regardless of the pool.
I think there might be a problem calculating the total cheque_Amount. Any ideas?
=DLookUp("[PoolAmount]","tblPool","[PoolID]
= " & [Forms]![frmGrantRequest]![PoolID])-DSum("[cheque_Amount]","tblGrantDetails","[PoolID]
= " & [Forms]![frmGrantRequest]![PoolID])
tblPool stores a total amount of a grant
frmGrantRequest contains details of an application
frmGrantDetails is a subform on this form whose info gets stored in tblGrantDetails. This subform stores information on projects relevant to an application. An application may have several projects. I have totalled the amount awarded of each project to get an application amount.
What I need to do now is total all of the application amounts for a particular pool and subtract it from the PoolAmount.
Below is the formula as it is now but it totals all of the application totals regardless of the pool.
I think there might be a problem calculating the total cheque_Amount. Any ideas?
=DLookUp("[PoolAmount]","tblPool","[PoolID]
= " & [Forms]![frmGrantRequest]![PoolID])-DSum("[cheque_Amount]","tblGrantDetails","[PoolID]
= " & [Forms]![frmGrantRequest]![PoolID])