Being picky, you don't "run" a module. A module is a container that holds functions and subroutines.
Code:
<snip>
For i = 0 To .Controls.Count - 1
Select Case .Controls(i).ControlType
Case acComboBox, acListBox, acSubform
.Controls(1).Requery <<<<<<---------------------
End Select
Next
<snip>
I think the error is because you have a 1 (one) instead of an i (eye). The code should look like:
Code:
<snip>
For i = 0 To .Controls.Count - 1
Select Case .Controls(i).ControlType
Case acComboBox, acListBox, acSubform
.Controls(i).Requery <<<<<<---------------------
End Select
Next
<snip>
The code you posted is (IMO) overkill.
You could add a button on the form and add this code to the click event of the button:
(this only requeries subforms)
Code:
Dim i As Integer
With Me
For i = 0 To .Controls.count - 1
Select Case .Controls(i).ControlType
Case acSubform
.Controls(i).Requery
End Select
Next
.Refresh
End With