Making progress on my first database. Using 2003 with security. I want to display form based on current user. My thought is to do a macro with the following conditions:
Condition
CurrentUser()=[BOB] Or CurrentUser()=[CONNIE] Or CurrentUser()=[ENIS]
Action
Openform (with the specific form for these users)
Stopmacro
Condition
CurrentUser()=[MIKE] Or CurrentUser()=[MARY]
Action
Openform (with the specific form for these users)
Stopmacro
CurrentUser()=[BELINDA] Or CurrentUser()=[TINA] Or CurrentUser()=[DENISE] Or CurrentUser()=[NANCY]
Action
Msgbox with message telling these users access denied
I am sure there is a cleaner way to do this, but this is my first macro. Would like to do by user group, but couldn't find a function for this. Now the button on the switchboard which is using this macro returns an error message. "there was an error executing the command"
Condition
CurrentUser()=[BOB] Or CurrentUser()=[CONNIE] Or CurrentUser()=[ENIS]
Action
Openform (with the specific form for these users)
Stopmacro
Condition
CurrentUser()=[MIKE] Or CurrentUser()=[MARY]
Action
Openform (with the specific form for these users)
Stopmacro
CurrentUser()=[BELINDA] Or CurrentUser()=[TINA] Or CurrentUser()=[DENISE] Or CurrentUser()=[NANCY]
Action
Msgbox with message telling these users access denied
I am sure there is a cleaner way to do this, but this is my first macro. Would like to do by user group, but couldn't find a function for this. Now the button on the switchboard which is using this macro returns an error message. "there was an error executing the command"
