I am attempting to put an Order Total in the footer section of a Form in an ADP project. In the detail section of the form I have two controls bound to a table in the backend (SQL Server 2000) database. These fields are Quantity and UnitPrice (Float and a SmallMoney field respectively), with a third control called LineTotal having a controlsource of "=Quantity * UnitPrice"
In the Footer section, I have tried a control, set to:
=Sum(LineTotal)
or
=Sum(Quantity * UnitPrice)
but neither of these work. They produce a #error in the derived field.
This method works fine in a straight MDB environment, so I'm a little baffled why its not working here.
Has anyone experienced this problem before, or recognised a flaw in what Im doing; is there a simple workaround; I'm reluctant to code around it (using events) unless I have to.
Thanks in advance,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)
In the Footer section, I have tried a control, set to:
=Sum(LineTotal)
or
=Sum(Quantity * UnitPrice)
but neither of these work. They produce a #error in the derived field.
This method works fine in a straight MDB environment, so I'm a little baffled why its not working here.
Has anyone experienced this problem before, or recognised a flaw in what Im doing; is there a simple workaround; I'm reluctant to code around it (using events) unless I have to.
Thanks in advance,
Steve Lewy
Solutions Developer
steve@lewycomputing.com.au
(dont cut corners or you'll go round in circles)