Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello all,
I am using QV 11. I want to know is it possible to lock a field based on some condition?
Like say for example, if OSUser = 'ABC' then only lock field F1.
Is it possible?? Please jump up with ideas ASAP.
Hello All,
I created following macro to lock the field and called it depending on the user
on 'On Open' trigger.
Sub SelectAndLock
set var = ActiveDocument.Variables("vB")
ActiveDocument.Fields("Branch").UnLock
if var.GetContent.String <> "Branch A" then
ActiveDocument.Fields("Branch").Lock
end if