Public Sub CycleThroughControls(frmObject As Form, blnEnabled As Boolean)
Dim ctrlObject As Control
On Error Resume Next 'Not All Controls have an Enabled Property
For Each ctrlObject In frmObject
Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!
Or try our Ask An Expert service to answer any of your questions!