G
Guest
Hi,
I have been trying to stop users to make changes entries in a custom
calendar control that updates another form.
The control is "Scheduled" and should NOT be edited if entry is like=
"9999-Jones-W-1"
I tried many things, the last one is:
Private Sub Form_Current()
If Me!Scheduled = "*-?-*" Then
Me!Scheduled.Locked = True
Else
Me!Scheduled.Locked = False
End If
End Sub
I even tried:
Private Sub Scheduled_Click()
If Me!Scheduled = "*-?-*" Then
MsgBox "DO NOT make changes to Scheduled if it's related to a Job Example:
9999-Jones-W-1 "
End If
End Sub
(Not a perfect solution, even if it had worked)
Anyway any help is really appreciated, as you probably guessed I am a newbie.
Thanks in advance,
Emilio
I have been trying to stop users to make changes entries in a custom
calendar control that updates another form.
The control is "Scheduled" and should NOT be edited if entry is like=
"9999-Jones-W-1"
I tried many things, the last one is:
Private Sub Form_Current()
If Me!Scheduled = "*-?-*" Then
Me!Scheduled.Locked = True
Else
Me!Scheduled.Locked = False
End If
End Sub
I even tried:
Private Sub Scheduled_Click()
If Me!Scheduled = "*-?-*" Then
MsgBox "DO NOT make changes to Scheduled if it's related to a Job Example:
9999-Jones-W-1 "
End If
End Sub
(Not a perfect solution, even if it had worked)
Anyway any help is really appreciated, as you probably guessed I am a newbie.
Thanks in advance,
Emilio