My Assistant
![]() ![]() |
|
|
Dec 18 2007, 12:18 AM
Post
#1
|
|
|
UtterAccess Veteran Posts: 416 |
I have a query that starts with an invoice number. With that invoice number the next field tallies up all the items sold under that invoice with a dsum to another query. The next field is the same idea except it adds up all the payments made toword that invoice number. The next field I am trying to write a formula to find the difference between the two but it keeps showing up blank. Would the calculated field not be something like this
TotalOwing:[calcfield1]-[calcfield2] ? Edited by: kellyrmartin on Tue Dec 18 1:11:54 EST 2007. |
|
|
|
Dec 18 2007, 02:19 AM
Post
#2
|
|
|
Retired Moderator Posts: 19,667 |
JET may or may not process the (calculated) Fields from left to right as we usually (and incorrectly) expect due to the QBE.
To be 100% sure the difference calc will be performed correctly, the expressions need to be repeated like: CODE TotalOwing: {expression for calcfield1} - {expression for calcfield2} Of course, this assumes that the 2 expressions return numeric values. If they can be Null, you will need to handle the Null value also. |
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 22nd May 2013 - 07:50 AM |