What I want to do is make a switchboard that will display certain items on a per user basis, without hardcoding the users names.
Info:
I am running SQL Server 7 with Access 2000, using ADO for programming. This need started because we had 2 databases in Access 97. Eventually they got migrated to Access 2000 and then combined into 1 database and then migrated the data into SQL Server 7. The 2 switchboards are very different item-wise. My goal is to combine the 2 switchboards into 1. Then depending on the user login, enable/disable items. Currently, I change the switchboard form recordsource to tblSwitchboard1 or tblSwitchboard2 depending on the user's role. Is there a better way?
I've thought about assigning switchboard items numbers like 1,2,4,8,16,32,64,128,256 then creating roles with numbers such as '6' (2+4=6 so a user with role 6 has access to switchboard items 2 and 4 only. I'm not so sure how I would have it do the calculation needed for this though.)
Info:
I am running SQL Server 7 with Access 2000, using ADO for programming. This need started because we had 2 databases in Access 97. Eventually they got migrated to Access 2000 and then combined into 1 database and then migrated the data into SQL Server 7. The 2 switchboards are very different item-wise. My goal is to combine the 2 switchboards into 1. Then depending on the user login, enable/disable items. Currently, I change the switchboard form recordsource to tblSwitchboard1 or tblSwitchboard2 depending on the user's role. Is there a better way?
I've thought about assigning switchboard items numbers like 1,2,4,8,16,32,64,128,256 then creating roles with numbers such as '6' (2+4=6 so a user with role 6 has access to switchboard items 2 and 4 only. I'm not so sure how I would have it do the calculation needed for this though.)