Below is a formula that is in an unbound textbox on a form. The form has all the fields listed here,on it. The fileds are bound to tables as follows
purchase price = tenders table
gallons received= "" ""
inventory unit cost = "" ""
pipeline tariff to be accrued = tariffgl table
terminaling = terminalinggl table
terminaling income = termincgl table
not all tables are populated which means I get back null values in the form. In my test case the terminaling field is null. This formula will not calculate with a null field. How can I get results without populating that field. By the way all these are being pulled into the form via SQL and are being updated to the various tables on exit of the form. That is why I do not want to enter a default value into the control. I don't want a bunch of 0s on my tables.
=[PURCHASE PRICE]+((-[PIPELINE TARIFF TO BE ACCRUED]-[TERMINALING]-[TERMINALING INCOME FOR PFC TANK])/[GALLONS RECEIVED])-[INVENTORY UNIT COST]
purchase price = tenders table
gallons received= "" ""
inventory unit cost = "" ""
pipeline tariff to be accrued = tariffgl table
terminaling = terminalinggl table
terminaling income = termincgl table
not all tables are populated which means I get back null values in the form. In my test case the terminaling field is null. This formula will not calculate with a null field. How can I get results without populating that field. By the way all these are being pulled into the form via SQL and are being updated to the various tables on exit of the form. That is why I do not want to enter a default value into the control. I don't want a bunch of 0s on my tables.
=[PURCHASE PRICE]+((-[PIPELINE TARIFF TO BE ACCRUED]-[TERMINALING]-[TERMINALING INCOME FOR PFC TANK])/[GALLONS RECEIVED])-[INVENTORY UNIT COST]