Re: "stamping" records by user

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: Rick B (anonymous_at_discussions.microsoft.com)
Date: 05/12/04


Date: Wed, 12 May 2004 13:34:46 -0500

Just enter =curentuser() in the timestamp field's default value, or
use code to place it there. Personally, I would use code on the before
insert to put the userid, date, and time.

Do a search if you would prefer to grab the login name from Windows and use
it.

Rick B

"MCB" <anonymous@discussions.microsoft.com> wrote in message
news:3CC9D66E-D22F-4B6F-B57C-889743B250CE@microsoft.com...
I don't think this is quite the same as the user tracking questions that've
been asked, but if so, my apologies.

In Access 2000, I have set up a workgroup with two levels of permissions.
All users are assigned to one of two groups. What the powers that be have
now asked for is basically an "entered by" field on the form where users
create a new case record (this database is medical-related). I could do this
manually, by making a drop-down list of usernames and making it mandatory
for the user to select his/hers when a new case is created, however, that's
clunky, and has little protection against errors (e.g. selecting the wrong
name).

Is there any way to grab the username from when the user logs in to the
database, and have that automatically populate the "entered by" field when
the user creates a new case? (Presumably a form of lookup.) Ideally, I don't
want to do this in VBA if I don't have to, since I have nearly zero
experience using it, and have had no luck getting anything to work in it
when I've tried.

Thanks in advance.



Relevant Pages

  • Re: Reboot instead of debugger/dump from X11? (Re: an accidental way to pull the plug)
    ... when it took place with X11 ... on startup and switch back to the text console. ... I have been using FreeBSD as a fine platform for a Free database I ... using xv to grab the windows. ...
    (freebsd-current)
  • an accidental way to pull the plug
    ... so I am letting you folks know. ... I have been using FreeBSD as a fine platform for a Free database I ... using xv to grab the windows. ... wait (it has a timer delay, which I set to 5 seconds). ...
    (freebsd-current)
  • Re: Parsing Mail Messages
    ... Step 1: Grab the appropriate message ... The intent here is to call this from an Outlook rule. ... If necessary, this can be to a delimited text file, but preferably it would be to a database. ... grep wrote: ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: $_server[php_self]
    ... delete a database but i really want it to grab the stateselect extention and grab all the cities related to that state. ... First off I wanted to suggest you do some reading on PHP Security as your application falls victim to an input validation failure. ... Work on formatting and not hiding errors. ... Also you only need to select the database once, and you should reuse variables when they make sense to. ...
    (comp.lang.php)
  • Re: security of sessions
    ... Usernames and passwords should really be stored in a database, ... > im just starting to learn how sessions work and how to use them ... > secure to store that information in a session variable or is it better to ...
    (alt.php)