Hi all, I'm trying to get my expression for this right but I can't figure it out. On my form I have a Yes/No field called 'PurchasedForDelivery'. The form only shows records with this field set to 'No' (unchecked). I have another field called 'OrderWeight (Kg)'.
I have a text box at the bottom of the form and I would like to sum the 'OrderWeight (Kg)' field when the user selects the check boxes for 'PurchasedForDelivery' (to yes).
Can I do this with an expression or do I need some code to update the text box as the user clicks on check boxes?
Here's what I have so far:-
It just gives me an #Error message
I have a text box at the bottom of the form and I would like to sum the 'OrderWeight (Kg)' field when the user selects the check boxes for 'PurchasedForDelivery' (to yes).
Can I do this with an expression or do I need some code to update the text box as the user clicks on check boxes?
Here's what I have so far:-
Code:
=DSum("[OrderWeight (Kg)]","fsubUnprocessedOrders","[ProcessedForDelivery] = 'Yes'")
It just gives me an #Error message