G
Guest
I have a status field which is auto updated via query. I want to stop users
from changing any data on sub forms (datasheets) when the status is changed
to Completed.
I have tried the following code but with no luck. This code has worked on
another database but only when the status field isnull.
Would be grateful if someone could help and point out where i am going wrong.
Private Sub Status_AfterUpdate()
If (Me!Status) = Completed Then
Me!Appointments.Enabled = False
Else
Me!Appointments.Enabled = True
End If
End Sub
Thanks in anticipation
from changing any data on sub forms (datasheets) when the status is changed
to Completed.
I have tried the following code but with no luck. This code has worked on
another database but only when the status field isnull.
Would be grateful if someone could help and point out where i am going wrong.
Private Sub Status_AfterUpdate()
If (Me!Status) = Completed Then
Me!Appointments.Enabled = False
Else
Me!Appointments.Enabled = True
End If
End Sub
Thanks in anticipation