Fetching old value from subform field

Fetching old value from subform field

Hi,

I have a subform: Dispatch Details in the main form: Order and Dispatch. I need to fetch the value of a subform field: Quantity before updating it with another value. When I try to use the old.Subform.field name on the edit of the form submission it gives me the error: "Variable 'old' is not defined" .

How can i fetch that value for a field and then once it is updated I need to do some further logic