PC Review


Reply
Thread Tools Rate Thread

block switchboard menu for some users

 
 
SG
Guest
Posts: n/a
 
      6th Jun 2005
Hi,

I'm using access 2002. In my access front end, I have a switchboard with a
couple of menus. Is it possible to block one of the menu?
Thanks,
Sarah


 
Reply With Quote
 
 
 
 
Anno v. Heimburg
Guest
Posts: n/a
 
      6th Jun 2005
SG wrote:
> I'm using access 2002. In my access front end, I have a switchboard with a
> couple of menus. Is it possible to block one of the menu?


If you need to find out the name of the current user, there's a
CurrentUser() function (search Access VBA help for it).

And to determine the current user's groups (lifted from
http://support.microsoft.com/default...t%2Fsecfaq.asp
Question 22):

Function faq_ListGroupsOfUser (strUserName As String)
Dim ws As WorkSpace
Dim usr As User
Dim i As Integer

Set ws = DBEngine.Workspaces(0)
Set usr = ws.Users(strUserName)
For i = 0 To usr.Groups.count - 1
Debug.Print usr.Groups(i).Name
Next i
End Function

HTH,
Anno.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Switchboard Menu Labels Roseo Microsoft Access 5 12th Feb 2008 03:55 PM
Rename a Switchboard Menu =?Utf-8?B?TG9yaQ==?= Microsoft Access 2 16th Jul 2006 05:24 PM
Edit a switchboard menu. All I get is the Main menu. =?Utf-8?B?Q2FwdER1bnN1bGw=?= Microsoft Access 1 6th Dec 2005 11:05 PM
Menu Bar verses Switchboard =?Utf-8?B?VG9t?= Microsoft Access Getting Started 3 16th Jul 2005 02:16 PM
Switchboard/forms only for users Erik Microsoft Access Security 0 7th Apr 2004 06:58 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:16 AM.