Results 1 to 2 of 2
  1. #1
    metokushika is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    19

    Talking username&password

    hi everyone





    i'm having problems on how to
    make a simple form where i can
    compare the username and passwords
    from a table where the employee's
    username and passwords are saved.


    what i want to do is to make sure
    that whatever username is typed in,
    i want to match it to it's password


    and of course if the password doesn't
    match the username, the user can no longer
    enter to the other form.



    any help will do. thanks!

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Will need VBA code. In the AfterUpdate event for the password textbox, like:

    If DLookup("Password","UserTable","UserID=" & Me.UserTextbox) = Me.PasswordTextbox Then
    'code to continue
    Else
    MsgBox "Not authorized user, contact administrator"
    EndIf
    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: 14
    Last Post: 08-17-2015, 02:32 AM
  2. Replies: 5
    Last Post: 09-01-2011, 07:04 AM
  3. Username/Password From Table
    By mj-egerton in forum Programming
    Replies: 0
    Last Post: 04-03-2011, 04:46 AM
  4. Change username and password form..
    By Mrcams in forum Access
    Replies: 9
    Last Post: 12-07-2010, 11:22 AM
  5. request username and password
    By meysam_e2006 in forum Access
    Replies: 2
    Last Post: 07-02-2010, 02:03 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