Results 1 to 7 of 7
  1. #1
    dmcmillo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    13

    Question Add identifying Information for User actions that took place.

    I don't know if this can be done. I'm using Access 2010 and I have users updating information on a hourly basis.


    Can I have a field that basically shows the last user that edited the form or saved it?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Do you mean last user that edited the record?

    Is this db on a network file server? Can pull the username from the network with Environ("USERNAME").

    Or have a login procedure for the db.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    dmcmillo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    13
    Quote Originally Posted by June7 View Post
    Do you mean last user that edited the record?

    Is this db on a network file server? Can pull the username from the network with Environ("USERNAME").

    Or have a login procedure for the db.
    Yes the last user that edited the record.
    Right now its in my personal folder until ready to be deployed. I assume so it could pull it. I have not had to do that with any other db Ive created so far.

    I have a login procedure for a couple other db, adding it to this one would really be a pain for the user. Kinda need very quick access several times an hour. (my view. like if you have a bookmarks for windows browser.)

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I have a db where I need to document the user in some records. I have a table of users with their network username and their initials. I use their initials to document user in record. However, I use the Environ() function to pull their network username and do a lookup on the table to get their initials. Users do not have to 'login' to db.

    What happens several times an hour that you would need to do this?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    dmcmillo is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Aug 2013
    Posts
    13
    request from outside vendors. internal vendors, graphics changes, approvals, rejections, projection (ton) etc the list goes on.

    1.Ok so i can create a table with all user network names and initials.
    2.Create a field for the user name to appear (Do i use the lookup function here and not just a textbox?)
    3. Add field to each form needed and add the the Environ() function to the code after update?

  6. #6
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    Continuing with what you have already via J7:
    You need to add the User and Date fields to the tables that contain the data that you want tracked.
    Then you need to get creative as to when you are going to trigger the write - perhaps the OnDirty event....this depends on your knowledge of the user's behavior
    The timestamp can just be Now() while the User info is called from somewhere as per the dialog with J7.

    Whether or not you display these fields in the user's form is up to you - but put them in the form in order to facilitate the write task - and have visible during development so that you can eyeball that things are working...and then ultimately you can make them not visible if you wish.

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    It's just a textbox and would be set not to allow user edit. As NTC says, it can even be hidden from users if you want. And as also noted, the real trick is figuring out what event(s) to put code in.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 5
    Last Post: 05-09-2014, 09:32 AM
  2. User Actions
    By CementCarver in forum Forms
    Replies: 2
    Last Post: 06-15-2013, 06:22 PM
  3. Get user information from AD.
    By UserInterface in forum Access
    Replies: 15
    Last Post: 06-03-2013, 08:27 PM
  4. Windows User Login Information
    By MintChipMadness in forum Programming
    Replies: 6
    Last Post: 08-07-2012, 05:47 PM
  5. how to get user information
    By rashima in forum Programming
    Replies: 5
    Last Post: 04-13-2012, 01:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums