G
Guest
I am lookping through all of the controls on my form and disabling them with the following code
Set frm = M
For Each ctl In fr
ctl.Enabled = Fals
Next ct
This works fine with the exception that I get a 438 error when it hits a control that doesn't have this property. I can trap the 438 error and resume. However, I was wondering if there is a way to just loop through the fields and not the labels or other items that might be causing this error. Thanks in advance.
Set frm = M
For Each ctl In fr
ctl.Enabled = Fals
Next ct
This works fine with the exception that I get a 438 error when it hits a control that doesn't have this property. I can trap the 438 error and resume. However, I was wondering if there is a way to just loop through the fields and not the labels or other items that might be causing this error. Thanks in advance.