Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[blue]Your Thoughts? . . .[/blue]TheAceMan said:[blue]You can't lock a control thats [purple]in edit mode![/purple] . . . an error will be raised![/blue]
You can't lock a control thats in edit mode! . . . an error will be raised!
Private Sub Form_Current()
If MyCheckBox Then
Me.MyTextBox.Locked = True
Else
Me.MyTextBox.Locked = False
End If
End Sub
Private Sub MyCheckBox_AfterUpdate()
If MyCheckBox Then
Me.MyTextBox.Locked = True
Else
Me.MyTextBox.Locked = False
End If
End Sub
When you enter the 1st character! This triggers the [blue]OldValue[/blue] property as well as causing the record to enter edit mode (depicted by the pencil icon) if its the 1st character entered in the record.missinglinq said:[blue]When, exactly, is a control in "edit mode?[/blue]
I wasn't sure if you intended to lock fields while editing! I did say it was something to consider! However your locking after data entry, which is fine.kpryan said:[blue] . . . What I wanted was to be able to lock a field once data has been entered to stop idiot staff from removing it...[/blue]