I have one field that I need to disallow users to change. Here is the code that I am using, but it if I put it after Change() then I can't enter new stuff and if I put it AfterUpdate() it won't stop them from changing it. Any suggestions?
Private Sub Notes_BeforeUpdate(Cancel As Integer)
If Me.Consultant Is Not Null Then
MsgBox "You cannot change the data in this field. Please ask your administrator to change this data for you."
SendKeys "{ESC}", True
End If
End Sub
Private Sub Notes_BeforeUpdate(Cancel As Integer)
If Me.Consultant Is Not Null Then
MsgBox "You cannot change the data in this field. Please ask your administrator to change this data for you."
SendKeys "{ESC}", True
End If
End Sub