Results 1 to 4 of 4
  1. #1
    Chekotah is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    32

    login driving auto populating

    Scenario,

    Have a form that the employees enter their daily hours in (production based company), I would like to have two fields to auto populate when the employee logs into the db. The two fields are their name and employee ID.

    Currently my db has it when the employee chooses the form it will ask for parameters to add their employee Id several times which I do not want them to do that. I have tried doing look ups to a query as well as a table however it still continues to ask for the parameters.



    Any suggestions or recommendations on how to get the form to open with the information already populated into the fields based off their login.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What I do is at login I save the user ID to a textbox on a form (Main Menu) that never closes. That way the ID is always available for reference.
    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
    Chekotah is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2014
    Posts
    32
    Hi June7,

    I have been trying to set the log in form to invisible. However getting a debugging code error. can you give me an example of what you are talking about.

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Something like:

    DoCmd.OpenForm "MainMenu"
    Forms!MainMenu!tbxUser = Me.tbxUserID
    DoCmd.Close acForm, "Login", acSaveNo

    Post your code for setting login form not visible.
    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. Auto populating on a Form
    By Canadiangal in forum Forms
    Replies: 1
    Last Post: 03-28-2013, 04:54 PM
  2. Auto Populating a new form
    By mikejames in forum Access
    Replies: 12
    Last Post: 09-25-2011, 11:41 AM
  3. Auto Login
    By gripper in forum Programming
    Replies: 1
    Last Post: 08-30-2010, 06:26 PM
  4. new guy with a question on auto populating
    By zdiver07 in forum Forms
    Replies: 2
    Last Post: 05-03-2010, 11:06 PM
  5. Auto populating date.
    By emccalment in forum Access
    Replies: 3
    Last Post: 02-19-2010, 11:00 AM

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