
when I check on Relay to relay this invoice number , it makes this invoice no one can edit it , even we do uncheck to this invoice number , then we can edit it
I used this code , but not so useful :
Code:
if [Relay] = -1 then
msgbox "you can not edit this invoice"
docmd.cancelevent
End If
I used this code but it made every invoice can not do work in .
Code:
if [Relay] = - 1 then
msgbox "you can not edit this invoice"
me.AllowAdditions=false
me.AllowDeletions=false
me.AllowEdits=false
else
me.AllowAdditions=true
me.AllowDeletions=true
me.AllowEdits=true
End If