Results 1 to 5 of 5
  1. #1
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183

    Ability to create user login and identify the users when exporting

    Is it possible to create/ assign username and passwords to each users to enter the database and fill out the forms each time and have the query keep track / record which user filled the form and notify us when we do the export ?



    Thanks in advance

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Query would not track anything. Tables hold data. Queries manipulate data. What you want would require VBA code. You can either assign usernames and passwords or get the user's network login ID (assuming database is on a network server).
    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
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Query would not track anything. Tables hold data. Queries manipulate data. What you want would require VBA code. You can either assign usernames and passwords or get the user's network login ID (assuming database is on a network server).

    Thanks June.

    So what I have created right now is a table that holds username and passwords.

    Then I have created a form which will ask for USER LOGIN and PASSWORD.
    The users will then be able to fill forms and save it.

    now, how do I know which user filled the forms ? How do I link their names to the form they are filling so that when I export to excel files, I will have their names beside each form?

    Did I make sense?

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,898
    Not quite sure how the export will capture the username. Might have to actually be a field in the table where the username is saved.

    I presume these users will be repeat users? You will need to use VBA code to verify the login/password combination as saved to the table. Again, if these users have already logged into a network, could use code to get the username from the network login, then users don't even have to do a 'login'. Use VBA.Environ("USERNAME") in VBA code. Access does not recognize the Environ function so use VBA code to populate textbox on form.

    Regardless, will probably need to use VBA code to save username to the record or at least to a textbox on the form user is completing.
    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
    sk88 is offline Competent Performer
    Windows XP Access 2007
    Join Date
    Aug 2011
    Posts
    183
    Quote Originally Posted by June7 View Post
    Not quite sure how the export will capture the username. Might have to actually be a field in the table where the username is saved.

    I presume these users will be repeat users? You will need to use VBA code to verify the login/password combination as saved to the table. Again, if these users have already logged into a network, could use code to get the username from the network login, then users don't even have to do a 'login'. Use VBA.Environ("USERNAME") in VBA code. Access does not recognize the Environ function so use VBA code to populate textbox on form.

    Regardless, will probably need to use VBA code to save username to the record or at least to a textbox on the form user is completing.

    Thanks, June.

    The users will be repeat users. I was thinking of using VBA code to save username to the record (i.e. to the tables) after user login.
    But how do I go about doing that? Do you by chance know the code?

    So basically what I have right now is when the user open the database, a login screen will appear and will ask for user login and password.
    once completed, it will take the users to the main menu where the user can click to either ADD NEW INFORMATION or EXPORT.

    Under ADD NEW INFORMATION - it is a form where the user have to complete and save and this is where I would like to create the VBA Code to have ACCESS save the username to the record.

    So that in the end, I would know which user filled what information.


    Hope you or some one can help me with me.

    Sorry, I am still learning Access so VBA codes are fairly new to me.

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

Similar Threads

  1. Replies: 6
    Last Post: 12-12-2011, 01:28 PM
  2. Replies: 1
    Last Post: 12-11-2011, 11:48 AM
  3. Replies: 1
    Last Post: 10-27-2011, 01:31 PM
  4. Replies: 3
    Last Post: 09-22-2011, 03:35 PM
  5. Using lbl file to identify user
    By lynchoftawa in forum Access
    Replies: 1
    Last Post: 06-08-2009, 08:18 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