Maybe this will help. I stole the code from Allen Browne's site at
http://allenbrowne.com/ser-56.html
and modified it. I put a button on a form and named it "LockBoundControls". The code goes in the click event:
Code:
Sub LockBoundControls_Click()
On Error GoTo Err_Handler
'Purpose: Lock/Unlock/Enable/Disable controls
Dim frm As Form
Dim ctl As Control 'Each control on the form
Dim lngI As Long 'Loop controller.
Set frm = Me
For Each ctl In frm.Controls
Select Case ctl.ControlType
'remove any control types you don't want to Lock/Unlock/Enable/Disable
Case acTextBox, acComboBox, acListBox, acOptionGroup, acCheckBox, acOptionButton, acToggleButton
'Lock/unlock these controls if bound to fields.
If Len(ctl.ControlSource) > 0 And Not ctl.ControlSource Like "=*" Then
ctl.Enabled = True
ctl.Locked = False
ctl.BackStyle = 1
ctl.SpecialEffect = 2
End If
Case acSubform
'Do nothing
Case acLabel, acLine, acRectangle, acCommandButton, acTabCtl, acPage, acPageBreak, acImage, acObjectFrame
'Do nothing
Case Else
'Do nothing
End Select
Next
Exit_Handler:
Set ctl = Nothing
Exit Sub
Err_Handler:
MsgBox "Error " & Err.Number & " - " & Err.Description
Resume Exit_Handler
End Sub
.