Results 1 to 7 of 7
  1. #1
    tmb842 is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    3

    Angry Need help with VB Logon Screen


    Hey Guys,

    I am having issues with this stupid logon screen.

    I am trying to logon with trent.bourne and the password as fish

    The system cant find the stupid file and I cant get the logon form to work.

    Can someone have a lookie at file and let me know where I have stuffed up...

    Cheers

    Trent

    VMPD_ASSIST_FILE.zip

  2. #2
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    This line of your code (If Me.txtPassword = DLookup("Password", "vmpduserdetails", "Me ]=" & Me.cboEmployee.Value) Then
    remove the bracket after "Me

  3. #3
    tmb842 is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    3
    I just updated it to



    If IsNull(Me.txtPassword) Or Me.txtPassword = "" Then
    MsgBox "You must enter a Password.", vbOKOnly, "Required Data"
    Me.txtPassword.SetFocus
    Exit Sub
    End If

    If Me.txtPassword = DLookup("Password", "vmpduserdetails", "ID =" & Me.cboEmployee.Value) Then
    ID = Me.cboEmployee.Value

    However it still gives me the error

  4. #4
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    This table "vmpduserdetails" doesn't exist. Try this: =DLookUp("[Password]","[VMPD_System_Logon_Details]","[VMPD_System_Logon_Details]![ID]=[ID]")

  5. #5
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    Also - I think your password may be mis-spelled. Re-enter fish in the user screen.

  6. #6
    tmb842 is offline Novice
    Windows 7 32bit Access 2016
    Join Date
    Dec 2016
    Posts
    3
    Hi Gina,

    I think I love you!

    Thanks so much for your help!

    Cheers

    Trent

  7. #7
    Gina Maylone is offline Always learning
    Windows 10 Access 2016
    Join Date
    Jun 2013
    Location
    Afton, MN
    Posts
    544
    You're welcome Trent! Glad it worked out!

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

Similar Threads

  1. Best screen resultion for most common screen sizes
    By sjs94704 in forum Database Design
    Replies: 3
    Last Post: 05-26-2015, 06:12 AM
  2. Replies: 1
    Last Post: 02-25-2012, 01:14 PM
  3. logon
    By slimjen in forum Forms
    Replies: 1
    Last Post: 10-06-2011, 02:51 PM
  4. Logon form
    By Andyjones in forum Forms
    Replies: 5
    Last Post: 09-13-2011, 01:58 PM
  5. Replies: 11
    Last Post: 06-05-2011, 09:51 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