Page 7 of 8 FirstFirst ... 5678 LastLast
Results 91 to 105 of 109

Thread: How to create user login form (MS Access 2000 - 2003)

  1. #91
    Join Date
    Jun 2012
    Posts
    1
    Yes I would like a copy of your login demo. I am having trouble creating one.
    email me at meds22cathy.co.uk.
    Thanks Cathrine.

  2. #92
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    Cathrine

    Have a look at message 44 on this thread.
    Allan

  3. #93
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    Cathrine
    Your email address is invalid.
    Allan

  4. #94
    Join Date
    Jul 2012
    Posts
    1
    I have a question I have this login form which is really good but I want to add a Dlookup in it to pull certain information from the querys when you log into it I also a login that does this but I like this login better

    if anyone can help I will email this database login to you
    [email protected]

  5. #95
    Join Date
    Feb 2013
    Posts
    1
    i have an interesting question.....so with this login security, i have a form with a quiz on it can i have them login like normal but only on certain occasions give them access the the link that goes to the quiz form? like for instance the admin guy has sec. lvl 1 and everyone else has lvl 2.....but can i set the sec. lvl for the quiz to say 3, and then say dec. or jan. add that lvl of sec. to the users so they can access it? i hope i didnt lose anyone...thanks

  6. #96
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    John

    Yes, The access level for each user can be changed anytime by the administrator of the database by using the Add/Edit users menu item which open frm_users.

    Alternatively, you could add the Quiz as a menu item to security level2 that would open the quiz, then go into the table that is used to display the menu for security level 2 in the demo version this is switchboard_lev2 make a note of the value in SwitchboardID for the quiz menu item and store in the description field (this will be used later as required). Now go back to the SwitchboardID for the quiz menu and change the existing value to 999.

    By changing the value to 999 the user will not have the quiz menu item displayed as most likely you will not have a menu page number(SwitchboardID) with a value of 999-in your current database. when you want to display the quiz change the SwitchboardID 999 to the previous value you stored in the description field. Have I lost you?

    The alternative method will be more efficient than trying to change the access level for each user.
    Allan

  7. #97
    Join Date
    Jun 2013
    Posts
    1
    Hello Allan, first of all - this thread is great.

    I'm trying to make DB with simple user login form and afterwards I want to apply user stamp ID on all data that is modified or created in other form. I was using your template with utility form, but I constantly ran into problems.

    This is the code part:

    DoCmd.OpenForm "UtilityF", , , , , acHidden

    Forms!UtilityF!EmpID = Forms!LogInF!EmpID



    LogInF - Login form
    UtilityF - Utility form
    EmpID - Employe ID, AutoNumber in User table


    What I get as error message is Runtime error '2448' : "You can't assign a value to this object."

    Since I'm VB/Access newbie, can you please tell me what could be the problem?

  8. #98
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275
    Hello Storvagun

    Please send me a copy of your database with just the login and utility forms and I will have a look at your problem.
    Allan

  9. #99
    Join Date
    Aug 2013
    Posts
    7

    User Login form

    Is there any way where we can use windows authentication to login the form.

  10. #100
    Join Date
    Aug 2013
    Posts
    7

    Login Screen Sample

    Quote Originally Posted by Allan Murphy View Post
    Here is my sample login screen database.

    Open frm_main use either TEST1, TEST2 OR TEST3, the user ID determines the level of access. Whne you first login you will asked to change the password as the password has expired. This is a feature that I use as a bit of security etc.

    Contact me if require more information etc.

    Allan Murphy
    [email protected]
    __________________________________________________ _______________________________________________
    Dear Allan,

    have created a back end access sheet which is linked to access user form. but the location is different for both.
    i have used have used the path to define location for backend form. is there any way where can i use you form to save credential in my backend and users can validate their credential from there. Kindly assist.

  11. #101
    Join Date
    Oct 2006
    Location
    Maitland NSW Australia
    Posts
    275

    Managing user login

    If you want a form to manage you user credentials, then just create a form as per your requirements and then set the record source to the tbl_users in your backend database. For security reasons be careful not to allow everyone have access to this form. You will also need password and access level on this form so that you can change the access level and reset the user's password etc.
    Allan

  12. #102
    Join Date
    Mar 2006
    Location
    Oklahoma City, OK
    Posts
    184
    [QUOTE=sonia;132051]Is there any way where we can use windows authentication to login the form.[/QUOTE

    Sure. I do that a lot.

    I use this to get the Windows user name: http://access.mvps.org/access/api/api0008.htm

    I look up to see if the Windows user is in a local user table. If found then I run the code to log in the user with that user name.

    I have not used it, but I have seen way to get more Active Directory (AD) information about the use, like security groups. This would allo you to make a more fully integrated security system using AD.
    Boyd Trimmell aka HiTech Coach
    Microsoft MVP - Access Expert
    [SIGPIC][/SIGPIC]
    Office Programming 25+ years as a Software Developer specializing in:
    Business Process Management
    Accounting/Inventory Control
    Customer Relations Management (CRM)
    Electronic Data Interchange (EDI)

  13. #103
    Join Date
    Aug 2013
    Posts
    7
    Quote Originally Posted by Allan Murphy View Post
    If you want a form to manage you user credentials, then just create a form as per your requirements and then set the record source to the tbl_users in your backend database. For security reasons be careful not to allow everyone have access to this form. You will also need password and access level on this form so that you can change the access level and reset the user's password etc.
    Thanks alot allan

  14. #104
    Join Date
    Aug 2013
    Posts
    7
    [QUOTE=HiTechCoach;132061]
    Quote Originally Posted by sonia View Post
    Is there any way where we can use windows authentication to login the form.[/QUOTE

    Sure. I do that a lot.

    I use this to get the Windows user name: http://access.mvps.org/access/api/api0008.htm

    I look up to see if the Windows user is in a local user table. If found then I run the code to log in the user with that user name.

    I have not used it, but I have seen way to get more Active Directory (AD) information about the use, like security groups. This would allo you to make a more fully integrated security system using AD.
    but this describes user only. would like to valodate the password also from system (windows authentication)

  15. #105
    Join Date
    Aug 2013
    Posts
    7
    Quote Originally Posted by Allan Murphy View Post
    If you want a form to manage you user credentials, then just create a form as per your requirements and then set the record source to the tbl_users in your backend database. For security reasons be careful not to allow everyone have access to this form. You will also need password and access level on this form so that you can change the access level and reset the user's password etc.
    Hi Allan,

    below is code which would like to modify as per my requirement.
    my requirement is to save credential in backend database named "tbl_users"
    have already created tbl_users. but want to know how to address the table/file through code.




    Sub display_menu()
    On Error GoTo err_display_menu

    ' at this stage the userId and access level has been checked
    Dim access_level As Integer
    Dim finish_Date As Date
    Dim port_syd As String
    Dim valid_user As Integer
    Dim check_user As Integer
    Dim password_period As Date
    Dim check_password As String
    Dim strmsg As String
    Dim Connection
    Dim Rs1 As ADODB.Recordset
    Set Connection = CreateObject("ADODB.Connection")
    Set Rs1 = New ADODB.Recordset
    Connection.Open (Databasepath)

    Rs1.Open "tbl_users", Connection, adOpenDynamic, _
    adLockOptimistic, adCmdTableDirect


    valid_user = 2

    ' **********************************************
    ' validate user_id
    ' **********************************************

    check_user = DCount("[user_id]", "tbl_users", "user_id=forms!frm_main!user_id")
    If check_user = 1 Then
    valid_user = 2
    Else
    valid_user = 0
    End If

    ' **********************************************
    ' validate password
    ' **********************************************
    If valid_user = 2 Then
    check_password = DLookup("[passwords]", "tbl_users", "user_id=forms!frm_main!user_id")
    If UCase(check_password) = UCase(Forms!frm_main!password) Then
    valid_user = 2
    Else
    valid_user = 1
    End If

    End If
    Attached Files Attached Files

Posting Permissions

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