pdvsa
asked on
#Type! error
ASKER
Hi John, thanks...didint seem to be the trick though. The fields are both currency if that matters.
txtSumPmts is like this:
=Format(DSum("Amount","qryPaymentsSum","LCID=" & [LetterOfCreditID] & ""),"Currency")
Amount is just simply [amount].
Letme know if you have another idea....thanks!
txtSumPmts is like this:
=Format(DSum("Amount","qryPaymentsSum","LCID=" & [LetterOfCreditID] & ""),"Currency")
Amount is just simply [amount].
Letme know if you have another idea....thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
nice! Worked perfectly. thank you much!
@pdvsa,
Just so you understand, the Format() function always returns a string. So if you are going to use that value in another computation, you would need to translate that back into a numeric value. I'm willing to bet that John's original response was really close. I would have recommended:
Just so you understand, the Format() function always returns a string. So if you are going to use that value in another computation, you would need to translate that back into a numeric value. I'm willing to bet that John's original response was really close. I would have recommended:
Val(Nz([txtAmount],0))-Val(Nz([txtSumPmts],0))
try converting the values to see if this fixes it
Open in new window
If this fails share a sample for all of us to take a look.