Hi
I have a form and I want to disable some fields depending on whether a check box on the form is ticked.
I've tried:
but I get an error message:
"Run-time error '2164':
You can't disable a control while it has the focus."
Any help would be greatly appreciated.
Thanks
AL
I have a form and I want to disable some fields depending on whether a check box on the form is ticked.
I've tried:
Code:
Forms![formname].Controls(fieldname).Enabled = False
but I get an error message:
"Run-time error '2164':
You can't disable a control while it has the focus."
Any help would be greatly appreciated.
Thanks
AL