In VBA I need to check the value of a field on a subform where the control source is =count([quantity sold]) to see if it is greater than 0. There is no problem as long as the subform is not dirty. If it is dirty and I set Me.Dirty = False the value of the count is not updated in vba unless I put a loop in my code to slow it down then it works fine even if I only pause for 1 second. The value shown on the subform for this field is updated and correct after the me.dirty = false.
Is there a better way of checking the count of the [quantity sold] field?
Here are some details of the form: The form is a basic invoice with line items in the subform. The subform is a continuous form that is loaded with line items so the user only needs to enter the quantity of items needed. I display the total number of line items ordered on the subform with a field where the control source is =count([quantity sold]) this all works fine.
Thank you for any help.
Is there a better way of checking the count of the [quantity sold] field?
Here are some details of the form: The form is a basic invoice with line items in the subform. The subform is a continuous form that is loaded with line items so the user only needs to enter the quantity of items needed. I display the total number of line items ordered on the subform with a field where the control source is =count([quantity sold]) this all works fine.
Thank you for any help.