C
connie
I am using Access 2000. I have a field on a form that
needs to add two dollar amounts from two different
tables. It works fine if if I just do the calculation on
the one field in the one table but when I add the syntaxt
to add the other field from the other table I get an error
about invalid syntax.
This one works:
=Format(Nz(DSum("[amountTendered]-
[change]","orders","[CustomerID]=" &
[customerid]),0),"Fixed")
This one doesnt:
=Format(Nz(DSum("[amountTendered]-
[change]","orders","[Customer ID]=" &
[customerid]),0),"Fixed")+(Nz(DSum
("PaymentAmount","Charges","[CustomerId]=" &
[customerid]),0),"Fixed")
needs to add two dollar amounts from two different
tables. It works fine if if I just do the calculation on
the one field in the one table but when I add the syntaxt
to add the other field from the other table I get an error
about invalid syntax.
This one works:
=Format(Nz(DSum("[amountTendered]-
[change]","orders","[CustomerID]=" &
[customerid]),0),"Fixed")
This one doesnt:
=Format(Nz(DSum("[amountTendered]-
[change]","orders","[Customer ID]=" &
[customerid]),0),"Fixed")+(Nz(DSum
("PaymentAmount","Charges","[CustomerId]=" &
[customerid]),0),"Fixed")