اذهب الي المحتوي
أوفيسنا
بحث مخصص من جوجل فى أوفيسنا
Custom Search

تغيير كلمة سر المستخدم


Mohammad0988

الردود الموصى بها

4 ساعات مضت, Mohammad0988 said:

اذا ممكن مساعدة في طريقة تغيير كلمة السر للمستخدم

بحيث يطلب كلمة السر القديمة قبل التعديل

وشكرا يوجد ملف مرفق

للرفع

مستخدم.rar

اتفضل 

Private Sub opn_Click()
    If Len(Me.txtpass & "") = 0 Then
            MsgBox "ادخل رقم سري القديم"
            Me.txtpass.SetFocus
            Exit Sub
        ElseIf Len(Me.txtpasscadid & "") = 0 Then
            MsgBox "ادخل رقم سري الجديد"
            Me.txtpasscadid.SetFocus
            Exit Sub
        ElseIf Len(Me.txtpasscedid1 & "") = 0 Then
            MsgBox "ادخل رقم سري الجديد للتأکيد"
            Me.txtpasscedid1.SetFocus
            Exit Sub
        ElseIf DLookup("[USER_PASSWORD]", "data1", "[USER_NAME]='" & Me.txtname & "'") <> Me.txtpass Then
            MsgBox "خطأ في رقم سري القديم"
            Me.txtpass.SetFocus
            Exit Sub
        ElseIf Me.txtpasscadid <> Me.txtpasscedid1 Then
            MsgBox "ھناک خطأ في تأكيد رقم سري الجديد"
            Me.txtpass.SetFocus
            Exit Sub
        ElseIf DLookup("[USER_PASSWORD]", "data1", "[USER_NAME]='" & Me.txtname & "'") = Me.txtpass And Me.txtpasscadid = Me.txtpasscedid1 Then
            Dim Sql As String
            Sql = "UPDATE data1 SET data1.USER_PASSWORD = [Forms]![Changepassord]![txtpasscadid] WHERE (((data1.USER_NAME)=[Forms]![Changepassord]![txtname]));"
            DoCmd.SetWarnings False
            DoCmd.RunSQL (Sql)
            DoCmd.SetWarnings True
            MsgBox "تم تغيير رقم سري بنجاح"
            DoCmd.Close acForm, Me.Name
    End If
    
End Sub

اليك المرفق

 

مستخدم.rar

  • Like 1
  • Thanks 1
رابط هذا التعليق
شارك

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

زائر
اضف رد علي هذا الموضوع....

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • اضف...

Important Information