Cause
This error occurs when accessing the controls on a form by using form.
Action
Change your code accordingly.
Controls is a dynamic array. Deleting or adding entries from the form changes the controlCount and potentially the position of a control in this array.