Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Code for username and password for login userform

  1. #1
    New Member
    Join Date
    Mar 2011
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Code for username and password for login userform

    Thnx for your help man. Now I have another situation.

    I have the following:

    1. Login form containing username and password fields.
    2. Data entry form

    I want to do the following:

    1. Coding for username and password fields, which, If the login is successful, takes me to DATA Entry Form, Otherwise shows message "Invalid Login".

    Thanks in anticipation.

  2. #2
    Board Regular
    Join Date
    Mar 2011
    Posts
    688
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thumbs up Re: Code for username and password for login userform

    On the click event of a command button you could use something like the following.

    Code:
    If txtUsername.value="USERNAME" Then
    If txtPassword.value="PASSWORD" Then
    frmDataEntry.Show
    Else MsgBox "Invalid Password"
    End If
    Else Msgbox "Invalid Username"
    End If

  3. #3
    New Member
    Join Date
    Mar 2011
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Code for username and password for login userform

    Thnx man. it's so nice of you. it really works.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •