hfsitumo2001
Member
- Local time
- Yesterday, 16:07
- Joined
- Jan 17, 2021
- Messages
- 394
In the following marked in red field, I have block it to unable user to edit, because sometimes inadvertently, their cursor goes there and type it, while they wanted to do is to search item of supplies.
But there is a time that we need to edit an item code, how can we make it that only Admin that can edit that by disable the block and edit it.
What I have in my mind, and please correct me is like this: on Get Focus of the field, we use subfunction If Dlookup is Admin, Data property block is False, else Msg box " Only Admin that can edit item code"
End if
Will Admin be able to edit that?, Please give me sample of VBA code for this
But there is a time that we need to edit an item code, how can we make it that only Admin that can edit that by disable the block and edit it.
What I have in my mind, and please correct me is like this: on Get Focus of the field, we use subfunction If Dlookup is Admin, Data property block is False, else Msg box " Only Admin that can edit item code"
End if
Will Admin be able to edit that?, Please give me sample of VBA code for this