Connecting Tech Pros Worldwide Help | Site Map

security on forms

  #1  
Old November 12th, 2005, 04:01 PM
Lapchien
Guest
 
Posts: n/a
Is it possible to restrict usage of a command button on a form to only
certain users (i'm on a windows 2000 domain) or users with membership of a
domain/group..?

Lap


  #2  
Old November 12th, 2005, 04:02 PM
Pieter Linden
Guest
 
Posts: n/a

re: security on forms


"Lapchien" <cc8345@nospamplease.eclipse.co.uk> wrote in message news:<1067870167.322779@ananke.eclipse.net.uk>...[color=blue]
> Is it possible to restrict usage of a command button on a form to only
> certain users (i'm on a windows 2000 domain) or users with membership of a
> domain/group..?
>
> Lap[/color]

Don't think so... well, without some ugly code. I guess you could
keep a list of folks that are allowed to use it in a table and then
check for their names in the table, but you could just as easily
distribute another FE/MDE without the button.
  #3  
Old November 12th, 2005, 04:03 PM
Albert D. Kallal
Guest
 
Posts: n/a

re: security on forms


It is a little tough to get at the membership info on the server side. You
can certainly use ms-access built-in security, and then you *CAN* get at the
ms-access groups each user belongs to. You can also grab, and get the
current network logged on name:

You can get the current network logon name with:
http://www.mvps.org/access/api/api0008.htm

And, the current computer name with:
http://www.mvps.org/access/api/api0009.htm

And, if using ms-access security, then currentuser() will return the
ms-access logon.

I often log all 3 of the above values in some applications.

--
Albert D. Kallal
Edmonton, Alberta Canada
NoooSPAmkallal@msn.com
http://www.attcanada.net/~kallal.msn


Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Set Security on using VBA in saved Access Query tomlebold@msn.com answers 2 February 15th, 2006 07:25 AM
problem setting up the security on my test web service Greg answers 2 November 23rd, 2005 05:13 AM
User Control Security on .Net 2.0 Norsoft answers 5 November 20th, 2005 10:05 AM
Access 2002 Security on multiple workstations TechBoy answers 2 November 13th, 2005 01:11 PM