ADO will give you access to the fields in the form's RecordSource, but not
to the controls on the form.
Loop through the form's Controls collection, and set the Disabled property
if the control has one: some don't, e.g. lines, command buttons, and labels,
so you will need to use error handling. In general, only the controls with a
Control Source property need to be disabled.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users -
http://allenbrowne.com/tips.html
"Mike" <mw******@swin.edu.au> wrote in message
news:3f********@news.cc.swin.edu.au...
I need to disable all controls on a form at startup. How can I get this
information from the comands collection using ADO?