Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / April 2005

Tip: Looking for answers? Try searching our database.

Finding Records

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mal - 07 Apr 2005 19:59 GMT
I have created a simple login screen for security and I am trying to figure
out how to create a way that  only the records show from the login point
forward that this user created. I don't want other people seeing those
records unless it is a adminisitrator.
I am not that advanced a user so simple is good.

Thank You for your help
Mallory
Dirk Goldgar - 07 Apr 2005 21:38 GMT
> I have created a simple login screen for security and I am trying to
> figure out how to create a way that  only the records show from the
[quoted text clipped - 4 lines]
> Thank You for your help
> Mallory

You need to set it up so that all records added are stamped
automatically with the current user.  That means there must be a field
in the table to store the UserID, and the form whereby records are added
must set that field for each record added.  If you're managing your own
security, rather than using Access's built-in user-level security (which
admittedly is rather finicky to set up, if you want your database to be
secure) then you need to have a global variable or function that will
return the user's login ID whenever it's called for.  Then you can
either set the DefaultValue of a hidden control on the form to the
function that returns the UserID, or else use an event procedure in the
form's BeforeUpdate event to assign the UserID to the field before the
record is written out.

You also need to base all forms and queries of this data on a query that
returns only those records that match the current UserID, UNLESS that
UserID is an administrator.  Naturally, you also need some means to
determine whether the user is an administrator or not, which is
something you can do at logon time.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

Mal - 08 Apr 2005 02:09 GMT
Thank you for the response.
Could you please give me an example of the global call? I have assigned an
ID with the login person and what data entry that has been done. I have tried
running a query once a name has been selected in the login ----however in my
combo box  I can not get those records to show in that combo.
Any Ideas?

Thanks Again
Mallory

> > I have created a simple login screen for security and I am trying to
> > figure out how to create a way that  only the records show from the
[quoted text clipped - 23 lines]
> determine whether the user is an administrator or not, which is
> something you can do at logon time.
Dirk Goldgar - 08 Apr 2005 02:23 GMT
> Thank you for the response.
> Could you please give me an example of the global call? I have
[quoted text clipped - 35 lines]
>> some means to determine whether the user is an administrator or not,
>> which is something you can do at logon time.

I'm not sure what you're asking.  Please post what you currently have,
as it relates to these security features:  the tables, fields, forms,
controls, variables, and code.

Signature

Dirk Goldgar, MS Access MVP
www.datagnostics.com

(please reply to the newsgroup)

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.