J
JohnE
I have a subform that is a checkbook style entry that acctg wants to use. In
the subform (the many to the main form one) there is a balance field in the
footer showing the what the deposit minus withdraw balance, as a whole. They
would like another field showing what the balance is from the beginning to a
selected individual record. There is on field for the amt and another field
that indicates if the amt is a deposit or a withdraw. Below is what I got
sofar but can't seem to get it right. I need to take the deposit amt and
subtract the withdraw amt.
**CheckingCategoryID = 1 is the deposit amt
**CheckingCategoryID = 2 is the withdraw amt
**both are currency
**the CheckingID is the PK
=DSum(("[Amount]","tblChecking","[CheckingCategoryID]=1")-("[Amount]","tblChecking","[CheckingCategoryID]=2"),"[CheckingID]<= " & [CheckingID])
If anyone can resolve this mystery, it is appreciated.
Thanks in advance.
.... John
the subform (the many to the main form one) there is a balance field in the
footer showing the what the deposit minus withdraw balance, as a whole. They
would like another field showing what the balance is from the beginning to a
selected individual record. There is on field for the amt and another field
that indicates if the amt is a deposit or a withdraw. Below is what I got
sofar but can't seem to get it right. I need to take the deposit amt and
subtract the withdraw amt.
**CheckingCategoryID = 1 is the deposit amt
**CheckingCategoryID = 2 is the withdraw amt
**both are currency
**the CheckingID is the PK
=DSum(("[Amount]","tblChecking","[CheckingCategoryID]=1")-("[Amount]","tblChecking","[CheckingCategoryID]=2"),"[CheckingID]<= " & [CheckingID])
If anyone can resolve this mystery, it is appreciated.
Thanks in advance.
.... John