pdvsa
asked on
Dsum help
Experts,
I have the following Dsum in a subform:
=DSum("[USDEquiv]","tblFXR ates","[Pr ojID]=" & Nz([ProjID],0))
Wouldnt this Sum all USDEquiv for ProjID = ProjID?
USDEquiv is a calculated field (see pic). the Dsum is not summing and only thing I can think of is USDEquiv is a calcualted field and not a field in tblFXRates. The ProjID's are populated.
here is the calcualted field as shown in the pic:
USDEquiv: IIf([CurrencyID]=1,[tblFXR ates].[Amo unt],([tbl FXRates].[ Amount]*[E xchangeRat e]))
thank you.
I have the following Dsum in a subform:
=DSum("[USDEquiv]","tblFXR
Wouldnt this Sum all USDEquiv for ProjID = ProjID?
USDEquiv is a calculated field (see pic). the Dsum is not summing and only thing I can think of is USDEquiv is a calcualted field and not a field in tblFXRates. The ProjID's are populated.
here is the calcualted field as shown in the pic:
USDEquiv: IIf([CurrencyID]=1,[tblFXR
thank you.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You need to DSUM on the query that contains the calculation not the table.
ASKER
OK. I guess I need to make a saved query because the query only resides on the record source of form?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thank you....will be asking a similar question in just a minute.