Where is mistake can you tell me ? Private Sub Command7_Click() If (IsNull(DLookup("UserName", "lbl_Login", "Username ='" & Me.txtuser & "'"))) And _ (IsNull(DLookup("Passsword", "lbl_Login", "Passsword ='" & Me.txtpassword.Value & "'"))) Then MsgBox "Username or Password is incorrect", vbCritical, "Check You Credentials" Else MsgBox "Welcom to Database" DoCmd.OpenForm "MainForm", acNormal DoCmd.Close acForm, "Login", acSaveYes End If
nice sir g
If I input same Username with a random password,it works still. How do I fix the same username not to use a random password?
No bro random password is not working cheek your vba code
Use "Or" instead of "And". Still this code has some flows like even if one you provide one password from the table it will still work.
Any username with right password opens main form🤔🤔🤔
Please check your code
@@DynamicProgrammer1 Ok.
User name missing operater error showen by login form
Why i cant use two words for example "admin username"
Reference 14:20
It became error or something
blur view for command
Run-Time error 2471 The expression you entered as a query parameter produced this error :"Password"
Check your query
How to use this left heavy comma ❛
1 More thing what is placed after 2nd time username and password in login form. Is it inverted commas?
Sound is off in video
Sir please start access
OK In shallah
Where is mistake can you tell me ? Private Sub Command7_Click()
If (IsNull(DLookup("UserName", "lbl_Login", "Username ='" & Me.txtuser & "'"))) And _
(IsNull(DLookup("Passsword", "lbl_Login", "Passsword ='" & Me.txtpassword.Value & "'"))) Then
MsgBox "Username or Password is incorrect", vbCritical, "Check You Credentials"
Else
MsgBox "Welcom to Database"
DoCmd.OpenForm "MainForm", acNormal
DoCmd.Close acForm, "Login", acSaveYes
End If