How to create Multi User LOGIN FORM in Ms Access With SECURITY LEVEL | Part-1

Sdílet
Vložit
  • čas přidán 31. 12. 2021
  • Part 2: • How to create Multi Us...
    Part 3: • How to create Multi Us...
    Check box type: • DEMO: Set Permission C...
    👍 Please Like comment and share to support this channel
    czcams.com/users/EdcelleJohnGulf...
    A cup of coffee is always welcome : www.paypal.com/paypalme/eduar...
    ⏱️ Timestamps:
    13:10 Insert Security Level
    Please Like and Subscribe for more video 🙏
    #microsoftaccess
    #microsoftaccesstutorial
    #mstutorial
    #loginform
    KEYWORD:
    How to create login form in microsoft access,
    Login form in microsoft access with credentials,
    How to create login form in microsoft access with security label,
    How to appear username in dashboard,
    How to create a temporary login in microsoft access,
    Microsoft access login form tutorial,
    microsoft access tutorial for beginners,
    microsoft access database tutorial,
    microsoft access 2019,
  • Krátké a kreslené filmy

Komentáře • 134

  • @aamalmarzouqi
    @aamalmarzouqi Před 2 lety +6

    Great job
    But the problem is any passwords is working with any users

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety +6

      Nice. I forgot to add lines for it.
      Just find this lines.
      Below the ELSE,
      TempVarUsername.......
      UserLevel......
      TempPass.....
      Id......
      'Insert this code
      IF ME.PASSWORD TEMPPASS THEN,
      MSGBOX "INCORRECT PASSWORD",VBINFORMATION," LOGIN DENIED"
      ME.USERNAME = ""
      ME.PASSWORD =""
      ME.USERNAME.SETFOCUS
      ELSE

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      Check out my lastest comment

    • @emito634
      @emito634 Před 2 lety

      @@EdcelleJohnGulfan I tried to fix it and it keeps giving the same error.

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      @@emito634 what's the error message?

    • @erickbarahona3515
      @erickbarahona3515 Před 2 lety

      @@EdcelleJohnGulfan Thank you! this video was so helpful!
      I also came across the same problem, can you provide the solution without temppass? I'd like to keep the code for part one only. thank you again!

  • @paultrickett7134
    @paultrickett7134 Před 2 lety

    Another very informative video, looking forward to the next part, I'm learning so much from your videos

  • @webberkolpine724
    @webberkolpine724 Před 2 lety +1

    Awesome tutorial man, everything worked great. I would recommend everyone watching part two as well!!
    I also reached out to Edcelle John Gulfan and he quickly replied to my email and helped me with my problem. I am excited to see future videos he produces!!

  • @moodkn
    @moodkn Před rokem +1

    Lot of Thanks... Very Helpful Porductive Exercise....

  • @johndelacruz9561
    @johndelacruz9561 Před 2 lety +1

    Hello po. Salamat sa mga videos. Marami po akong natutunan.

  • @morislubin4502
    @morislubin4502 Před 6 měsíci +1

    Your content is very good. It helps me a lot! Thank you.

  • @delanohowe8531
    @delanohowe8531 Před rokem +1

    Thanks for the coding man! Let me go and get this raise

  • @nayyerabbas3957
    @nayyerabbas3957 Před rokem

    Nice video your sir

  • @RandomBoyzOfficial
    @RandomBoyzOfficial Před rokem +1

    clean👍👏👏👏👏

  • @54g3
    @54g3 Před rokem +1

    Incredibly hard to follow along at a low level when you're using similar field names with text field names, etc. Other than that, pretty good.

  • @michaelheinrich8781
    @michaelheinrich8781 Před rokem +1

    A very nice explanation for the login. Unfortunately, it doesn't work with what is the relationship between the tables user and security level? it seems to me to have at this point. can you get a sample from the database?

  • @jbraun3043
    @jbraun3043 Před 3 měsíci

    THANK YOU!!!!!! I have been looking for a way to seperate user access without using AD. Thank you!!!!!!

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 3 měsíci

      You're welcome!

    • @jbraun3043
      @jbraun3043 Před 2 měsíci

      @@EdcelleJohnGulfan The login function is working perfectly. How do I log the user out and drop them to the login screen?

  • @Abdullah_Alhathloul
    @Abdullah_Alhathloul Před 3 měsíci +1

    Very helpful

  • @rabiuahmad2689
    @rabiuahmad2689 Před 9 měsíci +1

    Nie job
    We want you sir, to make videos on STUDENTS RESULTS COMPLITION MANAGENT SYSTEM

  • @KeffelewAssefa
    @KeffelewAssefa Před 2 lety +1

    Thank you

  • @ChrisWedam
    @ChrisWedam Před 2 lety +4

    Wonderful video. But please how do you close the form after login is successful. I mean how to close the login form after a successful login

  • @anamjims3707
    @anamjims3707 Před rokem

    Thanks for the great work you do for us by posting videos that help us in some parts of database.
    My issue is, how can I create a form the looks up like.
    Someone's particulars of address
    Having
    country, 》Uganda, kenya, Tanzania
    districts, 》districts under Uganda are Kampala, Jinja, Gulu, Arua
    subcounties,》subcounties under Kampala are Nakawa, central, maki, Jinja etc
    Parishes,》
    Villages,》
    I want something like a tree structure of a family.
    I want to open a country then select a district in that country then under districts select a sub-county in that district, then under sub-counties select a parish in that sub-county then under parish select a village in that parish lastly in village the family.

  • @rizkifillan173
    @rizkifillan173 Před 5 měsíci

    thanks bro i cant understane

  • @FonMillaJoel-zm2cn
    @FonMillaJoel-zm2cn Před 8 měsíci +2

    Please how did you create the admin control

  • @skvinchaxxxskvincha288
    @skvinchaxxxskvincha288 Před rokem +2

    you can do a lesson on how to make barcodes in access?

  • @filippocato5892
    @filippocato5892 Před rokem

    hello sorry if I bother you, I'm following your tutorials on ms access and I'm finding them really very interesting and useful, I'm just asking you a favor could you send me the access file of the multi user login form, thanks in advance I'm waiting for your reply.
    Best regards,
    Filippo.

  • @eng.mohamedfares8659
    @eng.mohamedfares8659 Před 8 měsíci +1

    Hi ...Please explain the ATM program required at my university

  • @MrZomby010
    @MrZomby010 Před 3 měsíci

    Thanks a lot for the video, just want some help in the user level, when i write the code for the user level it will perform the action of opening any idea how to fix it

  • @FonMillaJoel-zm2cn
    @FonMillaJoel-zm2cn Před 8 měsíci +1

    And the navigation interface

  • @sksm9202
    @sksm9202 Před 2 lety +1

    Great video, thanks.
    I learn right now Access and I have some problems organizing this, how can I connect you?

  • @ptzzycool
    @ptzzycool Před 10 měsíci

    Sir, thank you so much. I really like your tutorials. They are helping a lot. Your layouts look so fantastic and wish to design mine to look the same. However whenever I try to open them on different size monitors, they seem to fit well in some and in others, they don't. Is there a way to set the database forms so that they automatically adjust to fit well in any screen size? Thanks.

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 10 měsíci

      Thanks for watching my videos!
      By the way, have you tried the Anchoring?

    • @ptzzycool
      @ptzzycool Před 10 měsíci +1

      Thank you so much sir. I will try that.@@EdcelleJohnGulfan

  • @bingoo8960
    @bingoo8960 Před rokem

    I found this video to be very helpful
    Thanks for all your hard work
    Can you please let me know if I can get the access file you used in the video
    If yes, where can I get it?

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před rokem

      Email me at eduardogulfan@gmail.com

    • @adammorra3813
      @adammorra3813 Před rokem

      @@EdcelleJohnGulfan Why not just post it on a website so not everyone has to email you for the file?

  • @okellogilbert899
    @okellogilbert899 Před rokem +2

    hello, I followed your "how to create login for in Ms access till part 3. I created a main menu for users and it has report preview for login users to view reports concerning their book loans. Am challenged on how to makesure this report only opens the records of the logged member and not others member's records. Plz build on what you did in Part 3. thanks

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před rokem +2

      Nice question.
      Actually same concept with part 3.
      But in your query ( data source of report) you must filter using the login Id or user id.

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před rokem +4

      I will create a video for this soon.

    • @NixieBurton
      @NixieBurton Před 2 měsíci

      I see this is about a year old. Have you created this video yet?

  • @kubyertosatbp..7259
    @kubyertosatbp..7259 Před rokem

    Sir pano po un, nag try ako ginaya ko po, pero Me nag pop up po na "Run-Time error '3075':
    Syntax error in string in query expression 'Username=gfgt".
    Ano po ibig sabihin nun?
    Pano ko po un maayos?

  • @markdesens3046
    @markdesens3046 Před 18 hodinami

    Hey Edcelle, I watched this video and I was thinking about mine. Do you have a video on how to recover a password?

  • @NixieBurton
    @NixieBurton Před 2 měsíci +1

    Is there a way to use this code to open a specific record on a subform within the navigation form? I set up my navigation form to have an employee directory where the user can see all other records. I also created a subform to show an employee skills matrix but I would like this form to filter and only show the record related to the current user logged in.
    Is this possible?

  • @mcjimtariga5639
    @mcjimtariga5639 Před 7 měsíci

    When I log in, it doesn't go straight to the Navigation form (I created navigation form) it says it has a problem in security level

  • @jonathanbraun2548
    @jonathanbraun2548 Před 3 měsíci

    You videos have been so awesome!!!!! I have run into one problem only. I have created the "Username" and "Security Level" tables as you did. However, when i add the "Else userlevel" row i get this error when I try to login:
    Run-time error '3075':
    Syntax error (missing operator) in query expression '(Security Level)'.

    • @MorounofoluSefiu
      @MorounofoluSefiu Před 2 měsíci

      this is the correct code
      Dim UserLevel As Variant ' Changed to Variant type for flexibility
      If IsNull(Me.Username) Then
      MsgBox "Please enter the correct username.", vbInformation, "Username required"
      Me.Username.SetFocus
      Exit Sub
      End If
      If IsNull(Me.Password) Then
      MsgBox "Please enter the correct password.", vbInformation, "Password required"
      Me.Password.SetFocus
      Exit Sub
      End If
      ' Check if the username and password combination exists in the UserAccount table
      If IsNull(DLookup("Username", "UserAccount", "Username='" & Me.Username & "'")) Or _
      IsNull(DLookup("Password", "UserAccount", "Password='" & Me.Password & "'")) Then
      MsgBox "Invalid username or password.", vbInformation, "Authentication Failed"
      Me.Username = ""
      Me.Password = ""
      Me.Username.SetFocus
      Exit Sub
      End If
      ' Retrieve the user's security level from the UserAccount table
      UserLevel = DLookup("[SecurityLevel]", "UserAccount", "Username='" & Me.Username & "'")
      ' Check if a valid security level was retrieved
      If IsNull(UserLevel) Then
      MsgBox "Error retrieving user's security level.", vbCritical, "Error"
      Exit Sub
      End If
      ' Use Select Case for clarity and flexibility
      Select Case UserLevel
      Case 1 ' User Level 1
      MsgBox "Access Granted. You may proceed!", vbInformation, "Authentication Succeeded"
      DoCmd.OpenForm "Home"
      Case 2 ' User Level 2
      DoCmd.OpenForm "Admin Controls"
      Case Else ' Handle other user levels if needed
      MsgBox "Unknown user level.", vbCritical, "Error"
      End Select
      End Sub

  • @NguyenTam-zl2tk
    @NguyenTam-zl2tk Před 2 lety

    Very nice! Can you tell me how to prevent user access to view the content of the data tables? thank you.

  • @user-xh2ty8zu3t
    @user-xh2ty8zu3t Před 3 měsíci

    Nice video po sir, can u try to log in po na Eduardo tas password 123. Makaka log in po sya baka may line of code ka po to trap na ganitong scenario. Thank u po

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 3 měsíci

      Sir may nakalimutan akong isang line jan. Ang mga password ay pwede magamit sa ibang users.
      Panoorin mo ang link sa ibaba para ma-correct mo sir.
      czcams.com/video/fNRZziWCzMg/video.html

  • @nayyerabbas3957
    @nayyerabbas3957 Před rokem

    I have a data when i run it my computer freezes sir plz tell me the solution

  • @alalyania.4495
    @alalyania.4495 Před 6 měsíci

    Hi sir, thank you for your efforts
    I faced some issues during writing the code this is no setfocus when I tried to write and give error (method or data member not found)
    Could you please help me and tell me the solution

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 6 měsíci

      Wrong spelling or the FIelds you are writing is NOT EXIST.

  • @Maestrotoy
    @Maestrotoy Před rokem +1

    It can be use other password with same usename:)

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před rokem

      I forgot to add lines for it.
      Just find this lines.
      Below the ELSE,
      TempVarUsername.......
      UserLevel......
      TempPass.....
      Id......
      'Insert this code
      IF ME.PASSWORD TEMPPASS THEN,
      MSGBOX "INCORRECT PASSWORD",VBINFORMATION," LOGIN DENIED"
      ME.USERNAME = ""
      ME.PASSWORD =""
      ME.USERNAME.SETFOCUS
      ELSE

  • @user-qv7be5gw2c
    @user-qv7be5gw2c Před 4 měsíci

    How to make a load form for database in access

  • @johndelacruz9561
    @johndelacruz9561 Před 2 lety

    Hi po. Bago lang po ako nag aaral ng Access sa youtube. Pinapanood ko po mga video ninyo. Ask ko lang po nilagay ko na ang first syntax and second syntax kaso kapag ni-run ko na kapag nilagay ko sa username box okay siya "Please enter the correct username" pero kapag nilagay ko sa password box ang lumalabas pareho sa user name "Please enter the correct username". Tama naman po ang syntax gaya ng nasa video ninyo. Ano po gagawin ko? Salamat

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      Baka parehong "Please enter the correct username" sa coding mo. Dapat ang isa ay Please enter the correct password".

  • @mediasmart6940
    @mediasmart6940 Před 2 lety +1

    Could I have a copy of your database to practice with?

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety +1

      Visit this link. czcams.com/play/PLxBRM3hoV3nPdnE3yKTztDD4bPmgOScJQ.html
      My exercise file could be downloaded here.

  • @alabbadi
    @alabbadi Před 9 měsíci

    i keep having problems with the security level, when I first open the login form it works well with no password or a password not in the table, however if the username is correct I can use any password in the table from the password field and it lets me in. why isn't the password associated with the username not working

  • @johnch6476
    @johnch6476 Před 2 lety

    Good tutorial but all passwords must be with hash and encryption on database

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      Not all the times. Encrypted password is very easy to open.

    • @johnch6476
      @johnch6476 Před 2 lety

      @@EdcelleJohnGulfan is the best way to add passwords with cryptographic salt

  • @horaciosilvaporras656
    @horaciosilvaporras656 Před 10 měsíci +1

    Excelente video, pero me he dado cuenta que la ingresar las contraseñas, no distingue mayusculas y minusculas. Osea si tengo la siguiente contraseña: AbCdE. El access le da igual si pones ABCDE o abcde. Entonces se convierte en una falla de seguridad porque no estaría realizando la validación exacta. Como se solucionaría esta vulnerabilidad.

  • @izeckelibrah916
    @izeckelibrah916 Před rokem

    Sir how to create case sensitive for password po?

  • @mikol1114
    @mikol1114 Před rokem

    Hello sir.
    Whould it be possible that if the current password is active, it will be detected amg denied user?

  • @mikol1114
    @mikol1114 Před 2 měsíci

    Hello sir. What version po ng ms access ginagamit nyo?

  • @EdcelleJohnGulfan
    @EdcelleJohnGulfan  Před 2 lety +1

    Here is complete code.
    Please like, comment and share if possible to improve the algorithm of this video.
    Thanks.
    Private Sub Process_Click()
    Dim UserLevel As Integer
    Dim TempPass As String
    Dim ID As Integer
    Dim TempVarUsername As String
    If IsNull(Me.UserName) Then
    MsgBox "Please enter the correct USERNAME", vbInformation, "Username Required"
    Me.UserName.SetFocus


    ElseIf IsNull(Me.Password) Then
    MsgBox "Please enter the correct PASSWORD", vbInformation, "Password Required"
    Me.Password.SetFocus

    Else
    If (IsNull(DLookup("[UserName]", "UserAccount", "[UserName] ='" & Me.UserName.Value & "'"))) Or _
    IsNull(DLookup("password", "UserAccount", "Password ='" & Me.Password.Value & "'")) Then
    MsgBox "Incorrect Username or Password", vbInformation, "Login Denied"
    Me.UserName = ""
    Me.Password = ""
    Me.UserName.SetFocus

    Else
    TempVarUsername = DLookup("[EmployeeName]", "UserAccount", "Username ='" & Me.UserName.Value & "'")
    UserLevel = DLookup("[Security Level]", "UserAccount", "Username ='" & Me.UserName.Value & "'")
    TempPass = DLookup("[Password]", "UserAccount", "Username ='" & Me.UserName.Value & "'")
    ID = DLookup("[UserId]", "UserAccount", "Username ='" & Me.UserName.Value & "'")


    If Me.Password TempPass Then
    MsgBox "Incorrect Password", vbInformation, "Login Denied"

    Me.UserName = ""
    Me.Password = ""
    Me.UserName.SetFocus

    Else
    DoCmd.Close
    If (TempPass = "Password") Then
    MsgBox "Please change your Password", vbInformation, "Password Change"
    DoCmd.OpenForm "userAccount", , , "[UserId]=" & ID
    Else

    If UserLevel = 2 Then
    MsgBox "Access Granted! You may proceed.", vbInformation, "Authentication Succeeded"
    DoCmd.OpenForm "Navigation form"

    ElseIf UserLevel = 1 Then
    DoCmd.OpenForm "Admin Controls"

    End If
    End If
    End If
    End If
    End If
    End Sub

  • @Nathan-nj6kt
    @Nathan-nj6kt Před rokem

    I really like your explaination but this accepts any password. can you work us through why it doesnt work and how to fix it. Thank you

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před rokem

      I wrote the correct code in the previous comments. Kindly find and copy it.

  • @skvinchaxxxskvincha288
    @skvinchaxxxskvincha288 Před 11 měsíci +1

    How to protect from distribution? accde ?

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 11 měsíci +1

      Thanks for the question. I'll create a video about that.

    • @kensimba7868
      @kensimba7868 Před měsícem

      A good question. I've just began creating database systems for businesses but am worried my customers may want to sell to other people who operate similar businesses.

  • @migomotovlog
    @migomotovlog Před rokem

    San po kayo ng aral ng access programming

  • @Adorable.Princess
    @Adorable.Princess Před 5 měsíci

    What about the admin control form? You didn't teach how to make it

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 5 měsíci

      Open access option using vba: czcams.com/users/shortsR492MuN4Bt0?feature=share

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 5 měsíci

      Hide / unhide menu: czcams.com/users/shorts_p1Ddn6DsjU?feature=share

  • @oxpertecautomations2858
    @oxpertecautomations2858 Před 8 měsíci

    I would like to give you a small project

  • @bentelmalak5418
    @bentelmalak5418 Před rokem

    i want to add url to login buton but i can't know the code

  • @ninoeimred6276
    @ninoeimred6276 Před měsícem

    Pano po mahihide yung mismong Ms access kapag naload na yung mainform

  • @godofthunder7135
    @godofthunder7135 Před 6 měsíci

    debug problem in putting the security portion
    solution please

  • @neetusingh2579
    @neetusingh2579 Před 2 lety

    Kuyaaaa having syntax error sa If Userlevel is = 1 Then 🥺

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      Ano ang error?

    • @neetusingh2579
      @neetusingh2579 Před 2 lety

      @@EdcelleJohnGulfan navigation form pop up kuya hindi nawawala si log in form after access granted kahit nakalabas na si navigation pop up

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      Before sa code na message box for ACCESS GRANTED, lagyan mo ng Docmd.close

    • @neetusingh2579
      @neetusingh2579 Před 2 lety +1

      @@EdcelleJohnGulfan got it kuya! Gawa ka rin video kung pano mag pop up yong log ins pag open palang ng database app hehe

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety +1

      Baka pareho nitong nasa video.
      Auto execute: czcams.com/video/3DZVrPolX5w/video.html

  • @omarbachir9644
    @omarbachir9644 Před 2 lety

    Use less

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety +1

      If you don't like my flowers then, stay out of my garden. By the way, thanks for watching Omar.

  • @gmitch8247
    @gmitch8247 Před 2 lety

    I am stuck getting errors on the following code:
    Else
    Userlevel = DLookup("[SecurityLevel]", "UserAccount", "Username='" & Me.UserName.Value & "'")

    • @EdcelleJohnGulfan
      @EdcelleJohnGulfan  Před 2 lety

      That's correct statement of Dlookup.
      Have you type Dim Userlevel as Integer above your code? Or just check in your table maybe the USER LEVEL is one word only.

    • @Eev0L
      @Eev0L Před rokem

      @@EdcelleJohnGulfan same problem here