Hi. I was wondering if there's a way to prevent user input if there's already a record in the field. I would like to give an error message something like: MsgBox ("You can't modify this record") on the after update event of a field. What I can think of now is a logic like this.
After Update:
If Not IsNull(Me![Serial Number]) Then
Do whatever!
Else
MsgBox ("You can't delete this record")
End If
But I need to give the error msg before the data is changed, or somehow need to prevent the change. How could I achieve this? Thanks for any comment.
After Update:
If Not IsNull(Me![Serial Number]) Then
Do whatever!
Else
MsgBox ("You can't delete this record")
End If
But I need to give the error msg before the data is changed, or somehow need to prevent the change. How could I achieve this? Thanks for any comment.