RE: Code to filter records if regular user; if Admin show all

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Forgot to add this into my reply:

Would you happen to know how secure just filtering records for the user is?
Is that the recommended way to do it?
--
Sandy


"mscertified" wrote:

> You'll have to store the creator username in the record.
> You'll also need a table of user names saying who is regular and who is an
> admin.
>
> For regular users, in the openevent for the form change the source query
> based on what type of user to include the clause "WHERE UserName = " &
> CurrentUser
> You could also do it through the ApplyFilter statement
>
> -Dorian
>
> "Sandy" wrote:
>
> > Hello -
> >
> > How would I code a form so a regular user would only receive records they
> > entered for the day (way to allow if no records, show new blank record)? The
> > Admin, obviously will be able to see all records. The Record Source for
> > properties in the form for all records is qryCalls.
> >
> > My code currently has fOSUserName as the user name pulled off the system.
> >
> > Any help will be appreciated!
> > --
> > Sandy
.



Relevant Pages

  • RE: Code to filter records if regular user; if Admin show all
    ... For regular users, in the openevent for the form change the source query ... "Sandy" wrote: ... > Admin, obviously will be able to see all records. ...
    (microsoft.public.access.formscoding)
  • Re: How to have program load for all users?
    ... > Associate Expert - WindowsXP Expert Zone ... but is when logged in as admin. ... >> run for regular users - but not this one (it is an older version, ... >>> Best of Luck, ...
    (microsoft.public.windowsxp.newusers)
  • Re: Admin OU password change
    ... well but the regular users to be delegated control were ... all the admin accounts. ... >> decides that this person is in charge of passwords for ... trying to delegate ...
    (microsoft.public.win2000.active_directory)
  • Re: Detecting Zombies?
    ... Something like tripwire or cfengine would alert on or correct ... Having users run as regular users, and not Administrator, would help. ... But all of that requires some kind of admin. ... You don't get extra time added to the end of your life to make up ...
    (comp.os.linux.networking)
  • Re: List of all admin accounts in phpBB
    ... to regular users and User_level of 2 are moderators. ... > admin accounts... ... > It is very hard to find secret admin accounts if the forum has too ... > accounts on your phpBB forum. ...
    (Bugtraq)