For each next loop
I typed the following but get the error that “Object doesn’t support this property or method” for statements in my FOR loop. The below is specified in my frmDataEntry’s onCurrent event and ctl was defined as a variable of control type. Please advise.
For Each ctl In [Forms]![frmDataEntry]
ctl.Locked = True
ctl.Enabled = False
Next ctl
I typed the following but get the error that “Object doesn’t support this property or method” for statements in my FOR loop. The below is specified in my frmDataEntry’s onCurrent event and ctl was defined as a variable of control type. Please advise.
For Each ctl In [Forms]![frmDataEntry]
ctl.Locked = True
ctl.Enabled = False
Next ctl