JMongi
Active member
- Local time
- Yesterday, 23:47
- Joined
- Jan 6, 2021
- Messages
- 802
This is what I have in mind. But, I'm not certain what form "store the record in memory somewhere" would take. I was trying to avoid one of my classic long-winded posts, but here goes:one user record with a yes/no field for each possible role they could have, and just store that record in memory somewhere
EXISTING TABLES
tblUsers
ID
UserName
Active
LoggedIn
Computer
tblLoginSessions
LoginID
UserName
LoginEvent
LogoutEvent
ComputerName
These tables are part of @isladogs password login sample database. There are a couple of forms and some VBA functions associated with them so I am going to modify them as needed.
NEW TABLES
tblGroup
ID
Group
GroupDescription
tblUserGroup
ID
UsersID (FK)
GroupID (FK)
Access (1 = Member; 2 = No Member)
tblFormPermission
ID
frmName
GroupID (FK)
FormAccess (1 = Yes; 2 = No)
FormEdit (1 = Yes; 2 = No)
I would then need queries/forms for: adding new user groups; viewing/editing user group permissions; adding a new form; viewing/editing form permissions.
After running a query to pull the group member statuses of a user. I need to store that somewhere so that I have a check when a form opens (running a query to check form group permissions and then checking that against the stored user group membership).