473,480 Members | 3,062 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Switchboard Access 2007

64 New Member
I was wondering if it is possible to run different switchboards. I have multiple users whom I have grouped in to different workgroups with each workgroup having access to different functions of the database. I would like a different switchboard for each workgroup without having to actually create the separate forms.

I knowI can create different manual switchboards according to workgroup but I was wondering if there was a method to use the swithboard function for different workgroups.

Hope this makes sense.


Tomb
Apr 29 '08 #1
2 2501
puppydogbuddy
1,923 Recognized Expert Top Contributor
I was wondering if it is possible to run different switchboards. I have multiple users whom I have grouped in to different workgroups with each workgroup having access to different functions of the database. I would like a different switchboard for each workgroup without having to actually create the separate forms.

I knowI can create different manual switchboards according to workgroup but I was wondering if there was a method to use the swithboard function for different workgroups.

Hope this makes sense.


Tomb
This assumes you will continue to use the mdb file format with Ms Access 2007, instead of converting to the new accdb format (new format eliminates user level security).

One way I could envision it working is as follows (assuming you have 3 workgroups defined in ULS (User Level Security):
1. Modifiy the traditional one visible button for each function on the Switchboard to 3 not visible buttons for each function (one button for each workgroup) on the switchboard. The leftmost button for every function will be made visible when the switchboard opens if the user logging in is a member of workgroup 1, the middle button for every function will be made visible upon switchboar open if the user logging in is a member of workgroup2, and the rightmost button for every funcition will be made visible when the switchboard opens if the user logging in is a member of workgroup3.
2. The IsUserInGroup function, provided by LSMConsulting, is a quick way to determine Group membership:

Public Function IsUserInGroup(GroupName As String, UserName As String) As Boolean

Dim usr As DAO.User
Dim wsp As DAO.Workspace

On Error Resume Next
Set wsp = DBEngine.Workspaces(0)
Set usr = wsp.Groups(GroupName).Users(UserName)

IsUserInGroup = Err.Number <> 3265

End Function

Use it like this:

IsUserInGroup("Admins", CurrentUser)

would return True if the currentuser were a member of the Admins group ...

There is really no reason to iterate the group members; DAO will always throw the 3265 error if you pass in the wrong group or a user who isn't a member.

The Access User Level Security FAQ has some good code examples of how to determine User and Group membership ... download it from the link of this page.

http://www.jmwild.com/Accesssecurity.htm

3. The buttons for each workgroup would then enable/disable access to functions (e.g. a customer order form) depending on the workgroup they are associated with.


This link for Access 2000 may be useful to you for other ideas on how you could implement application level security at the Switchboard.

http://support.microsoft.com/kb/304315


In addition, there are some third party vendors who provide some aspect of application level security as an add-in.

http://www.peterssoftware.com/las.htm

http://www.safe-install.com/programs...or-access.html
May 5 '08 #2
tbeers
64 New Member
Actually, I have switched everything to accdb 2007 format and coded in a little division of workgroups using a hidden table for devisionof security levels. I don't have any users sophisticated enough to get through that to the tables on our secure server.

At any rate, you gave me some ideas of how to proceed.

Thanks

Tomb
May 8 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

13
5805
by: Mark | last post by:
I am looking for a switchboard creator alternative for my MDB. Can anyone help me? Thanks for your help, Mark
2
4017
by: Dannic | last post by:
Here is the application. Its a simple application really. I have a db created in Access 2000 which opens to a switchboard created by the switchboard manager. Now the problem. This only works...
3
3162
by: Haas C | last post by:
Hey all, Thi question may be simple to most people on this group, but I'm a newbie and can't figure this out. I have created a switchboard form and I've been able to display it on startup of...
1
1964
by: barry | last post by:
I am using Access 2007. I have created a simple switchboard that has an item that runs a report that is based upon a query. This query asks for a range of job numbers. When first going in to the...
0
1780
by: newwin | last post by:
How i create a popup menu on switchboard form, like on switchboard form, when user clicks the button a popup menu is displayed then user can selects one of them using access 2007. Please tell me, the...
2
1584
by: CindyP | last post by:
I'm creating a Switchboard in Access 2007 and one command is to close Switchboard and exit Access. I've created a group macro to encompass two other command button. The other two buttons works...
2
2572
by: colmkav | last post by:
Is there a way of adding more than the 8 items to a switchboard on Access 97? If so how? Colm
4
2891
by: David Grist | last post by:
Is there any way to by-pass the limitation of only 8 items on the switchboard menus? Thanks!
2
2062
by: Doug | last post by:
MS Access 2000 Help says there is an Switchboard Manager in Tools->Add-ins. Only Add-in Manager is there, and no Add-ins are listed. Clicking Add New takes me to an Add-ins directory on C: (empty...
0
1689
by: asifu9 | last post by:
Hello all, I am new to MS Access VBA 2007, i need help on how to open a chart form in switchboard. SwitchBoard having options to open a form in Add mode and edit mode, in both of...
0
7055
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6920
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7060
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6760
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7022
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4799
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
1311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
572
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
206
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.