Hello,
i need to total up all sales for 1 supplier and compare to the total.
I was thinking on adding a condition in a calculated field. The condition refers to a textbox on the report header.
but each time i get a prompt to supply the value: it's not reading from the header.
for testing purposes, i supply the value for txtsupplier control in the onload event
Any suggestions?
Thx
i need to total up all sales for 1 supplier and compare to the total.
I was thinking on adding a condition in a calculated field. The condition refers to a textbox on the report header.
Code:
=Sum(IIf([supplier]=[txtSupplier];totalqty;0))
for testing purposes, i supply the value for txtsupplier control in the onload event
Code:
Private Sub Report_Load()
Me.txtSupplier = "LANNEA"
End Sub
Thx