+ Reply to Thread
Results 1 to 6 of 6

Login Form

  1. #1
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Login Form

    hi i make a simple loginform in my data base but i cant work it out.. here is the details in my login form


    table name: login
    consist of the following:
    Field1: ID
    Field2: Username
    Field3: Password

    and i make a login form

    combobox dropdown menu only username shows
    Textbox for password input
    and a command button for Login..
    here is the code behind the button login



    Please Login or Register  to view this content.
    but when i click the login button after i put the username and password a error and im being redirect to VB code...

    any help will be appreciated..... thank you in advance...
    Last edited by phatus; 11-06-2010 at 11:53 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Login Form

    To begin with, you have control names in your code that don't exist on yur form. ie. On your form you have a control called Password, yet in your code you use txtPassword. You need to make sure that you are consistent with your naming conventions. Check all of your code and make sure that your controls that you are naming in the code are the same. It will never work if they are different.

    Alan
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Login Form

    what i did is import the login form to my database and in splashscreen i create a button that will direct to my form ^ ^...

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Login Form

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Login Form

    Regardless of where you get your form, import or build, you need to make sure that the code that operates the form is consistently named.

    Alan

  6. #6
    Registered User
    Join Date
    10-17-2010
    Location
    Naga, Philippines
    MS-Off Ver
    Excel 2003
    Posts
    42

    Re: Login Form

    i understand thanks alan... now im done with my data base...

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1