A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

how do I restrict the information to the current network user



 
 
Thread Tools Display Modes
  #1  
Old April 19th, 2005, 09:24 AM
Ahmed
external usenet poster
 
Posts: n/a
Default how do I restrict the information to the current network user

I am trying to link the database to the net work, I need to use the benefit
of using the user name as filter to restrict the information accessed by the
database user. in this case I will not have to creat a form asking the user
to logon or even I don't have to activate the database security.

basecally how can I retrive the network username and use it in the access
database?

Please help
  #2  
Old April 19th, 2005, 10:13 AM
Nikos Yannacopoulos
external usenet poster
 
Posts: n/a
Default

Ahmed,

The "quick & dirty" way is to use function Environ("Username").
The "poper" way is to use an API call, look at:

http://www.mvps.org/access/api/api0008.htm

The former is considered less secure in that environment variables are
subject to change by the user; in reality, though, I haven't come across
a user who new how to do it, so to me it's not a real issue. The choice
is yours.

HTH,
Nikos

Ahmed wrote:
I am trying to link the database to the net work, I need to use the benefit
of using the user name as filter to restrict the information accessed by the
database user. in this case I will not have to creat a form asking the user
to logon or even I don't have to activate the database security.

basecally how can I retrive the network username and use it in the access
database?

Please help

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Don't respond to phony e-mail sent to MSN customers requesting personal information!!!!!!!!!!! [email protected] General Discussion 0 March 18th, 2005 09:52 PM
Get Latest Entry with Query James Stephens Running & Setting Up Queries 3 February 25th, 2005 06:59 PM
Using Current date information MTRacer Running & Setting Up Queries 2 September 22nd, 2004 08:29 PM
You do not have exclusive access... ERROR Robin General Discussion 1 July 6th, 2004 01:18 AM
Publisher 2003 hotfix package Update (KB 838901) Brian Kvalheim - [MSFT MVP] Publisher 0 May 7th, 2004 08:38 PM


All times are GMT +1. The time now is 06:46 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.