السلام عليكم ورحمة الله وبركاتة
ارجو مساعدتي في حل الخطاء في الكود
شاكرة لكم مقدما
Private Sub login_Click()
If Me.psswrd = DLookup( "psswrd" , "useres" , "user_name"='" & Me.user_name & "'") Then
MsgBox "successfully registered"
DoCmd.Close acForm, "login"
Else
MsgBox "Make Sure that username and password are correct"
End If
End Sub