H
Helen
Hello everyone!
I have a form "frmAgentsNotes". Created a command button
to open the form as a read only.
Private Sub Form_Open(Cancel As Integer)
Me.Notes.Locked = True
End Sub
I have a second command that opens the form to edit mode.
Here is part of the code.
When I used the cmdZoomBox it worked ok. So I substituted
my form "frmAgentsNotes" instead of cmdZoomBox and it
stays locked. What am I missing?
If Nz(Me.tbPWord, "") = strPW Then
' Code to un-protect the notes field - I've
assumed Locked
Me.Notes.Locked = False
'Open MyZoomBox
DoCmd.OpenForm "frmAgentsNotes",
acNormal, , , , acDialog
If Me.Dirty Then Me.Dirty = False
Me.Notes.Locked = True
Else
I have a form "frmAgentsNotes". Created a command button
to open the form as a read only.
Private Sub Form_Open(Cancel As Integer)
Me.Notes.Locked = True
End Sub
I have a second command that opens the form to edit mode.
Here is part of the code.
When I used the cmdZoomBox it worked ok. So I substituted
my form "frmAgentsNotes" instead of cmdZoomBox and it
stays locked. What am I missing?
If Nz(Me.tbPWord, "") = strPW Then
' Code to un-protect the notes field - I've
assumed Locked
Me.Notes.Locked = False
'Open MyZoomBox
DoCmd.OpenForm "frmAgentsNotes",
acNormal, , , , acDialog
If Me.Dirty Then Me.Dirty = False
Me.Notes.Locked = True
Else