Two questions:
First I need to put the sum for a range of values in a subform in the master.
Im thinking I use the DSum(expr, domain[, criteria]) model.
But I get an #error when I use:
=DSum([Forms]![ReferralTable subform]![Referral Amt],[ReferralTable subform])
Am I getting the error because Im picking the domain value incorrectly or because I ommitted the critera?)
Second I need to duplicate this but pick only the values where [DateField A] is older than [DateField B]
So do I use =DSum([Forms]![ReferralTable subform]![Referral Amt],[ReferralTable subform][,[DateField A]<[DateField B]) ??
First I need to put the sum for a range of values in a subform in the master.
Im thinking I use the DSum(expr, domain[, criteria]) model.
But I get an #error when I use:
=DSum([Forms]![ReferralTable subform]![Referral Amt],[ReferralTable subform])
Am I getting the error because Im picking the domain value incorrectly or because I ommitted the critera?)
Second I need to duplicate this but pick only the values where [DateField A] is older than [DateField B]
So do I use =DSum([Forms]![ReferralTable subform]![Referral Amt],[ReferralTable subform][,[DateField A]<[DateField B]) ??