I am attempting to requery all the controls on my form, without having to explicitly name all 193 of them. I have tried the following code:
but get the error "Object doesn't support this property or method". The text boxes on my form are sourced by DLookups based on the value in the cboRegion. Any ideas? Thanks in advance.
Kelly
Code:
Private Sub cboRegion_AfterUpdate()
For a = 0 To (Forms!frmMain.Controls.Count - 1)
Forms!frmMain.Controls(a).Requery
Next
End Sub
but get the error "Object doesn't support this property or method". The text boxes on my form are sourced by DLookups based on the value in the cboRegion. Any ideas? Thanks in advance.
Kelly