Hi,
I have a main form and a subform.
The main form is based on an "items" table, and the subform is a continuous form based on a "subitems" table, they are lined via "item_id".
in the subform I have the following controls: Item, Used, Available.
The user chooses the "item" from a combo box, it automatically shows him the quantity of the item available in the "Available" field, then he enters the amount used in the "Used" field. I have set up an Invisible text box which stores the actual available amount with a formula to subtract the Used from the Actual, to prevent the Actual amount from being changed until the user presses the "Save" Button on the main form.
This all works fine and well if the subform contains only one item. but if the user selects more than one item in the continuous subform, Access only calculates the last item entered. and doesn't apply the formula to all items in the subform.
How do I solve this?
Thanks.