Hi All,
I have a requirement where I need to use the Access Macro to check for the username who opened the database. I know how to use it in VBA module, but was trying the same in Macro wizard and it isn't working. Request for help. Thank you.
I used
if Environ("UserName") = "xxxx" then
Note, I need it only in the Macro and not in VBA module. Thank you
I have a requirement where I need to use the Access Macro to check for the username who opened the database. I know how to use it in VBA module, but was trying the same in Macro wizard and it isn't working. Request for help. Thank you.
I used
if Environ("UserName") = "xxxx" then
Note, I need it only in the Macro and not in VBA module. Thank you
Last edited: