Home > Archive > MS Access Multiuser > April 2005 > User login id for table level permissions









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author User login id for table level permissions
karen scheu via AccessMonster.com

2005-04-09, 8:27 pm

My application contains a table for all order and sales information and
another table containing division/doc type cross ref. They are linked by
doc type. Division is always the main filter for the reports. A User may
have access to view all divisions or only a few. I wanted to create a
user/division xref table and all queries should join to that table to
determine based on the user, return a list of divisions. The result will
be only sales & orders for those divisions will be returned.

I am new to access security, so please bear with me. Will I need to grab
the access login id and use this as a parameter to my queries? If yes, how
do I do this? I feel lost and in need of direction.

Thanks,
Karen

--
Message posted via http://www.accessmonster.com
Paul Overway

2005-04-09, 8:27 pm

You can get the user name for the person that logged on by using the
CurrentUser() function. If the query needs to be filtered based on the
CurrentUser(), you would use the function as criteria in the query. The
query would be RWOP (run with owner permissions), and you'd prevent the
users from viewing the underlying tables directly by setting security for
those tables.


--
Paul Overway
Logico Solutions
http://www.logico-solutions.com


"karen scheu via AccessMonster.com" <forum@nospam.AccessMonster.com> wrote
in message news:430facd3450c492
f933e0375e0973cb3@Ac
cessMonster.com...
> My application contains a table for all order and sales information and
> another table containing division/doc type cross ref. They are linked by
> doc type. Division is always the main filter for the reports. A User may
> have access to view all divisions or only a few. I wanted to create a
> user/division xref table and all queries should join to that table to
> determine based on the user, return a list of divisions. The result will
> be only sales & orders for those divisions will be returned.
>
> I am new to access security, so please bear with me. Will I need to grab
> the access login id and use this as a parameter to my queries? If yes,
> how
> do I do this? I feel lost and in need of direction.
>
> Thanks,
> Karen
>
> --
> Message posted via http://www.accessmonster.com



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com