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

تعديل كود زر الحاقي يسمح لي بتكرر


إذهب إلى أفضل إجابة Solved by essam rabea,

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

السلام عليكم اريد تعديل زر الحاقي يسمح بالتكرار

Private Sub Command5_Click()
On Error GoTo Error_ErrorZ
    If Len(Me.B1 & vbNullString) = 0 Or Len(Me.B2 & vbNullString) = 0 Or Len(Me.B3 & vbNullString) = 0 Or Len(Me.B4 & vbNullString) = 0 Or Len(Me.B5 & vbNullString) = 0 Then
    
    Else
    DoCmd.SetWarnings False
    DoCmd.OpenQuery "Query1"
    DoCmd.SetWarnings True
'    MsgBox "Done", vbInformation

End If
    
Error_ErrorZ:
    MsgBox "Not Done", vbInformation
End Sub

زرالحاقي (4).rar

رابط هذا التعليق
شارك

  • أفضل إجابة

أ.بلال اليامين

جرب هذا الكود ووافنى بالنتيجة 

Private Sub Command5_Click()
    On Error GoTo Error_ErrorZ

    If Len(Me.B1 & vbNullString) = 0 Or Len(Me.B2 & vbNullString) = 0 Or Len(Me.B3 & vbNullString) = 0 Or Len(Me.B4 & vbNullString) = 0 Or Len(Me.B5 & vbNullString) = 0 Then
    MsgBox "All Fields is Null"
    
    Else
    
    DoCmd.SetWarnings False
    DoCmd.OpenQuery "Query1", acViewNormal
    DoCmd.SetWarnings True
'    MsgBox "Done", vbInformation

Exit_Command5_Click:
    Exit Sub
    

  End If
Error_ErrorZ:
    MsgBox "Not Done", vbInformation
    Resume Exit_Command5_Click
End Sub

 

رابط هذا التعليق
شارك

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.

  • تصفح هذا الموضوع مؤخراً   0 اعضاء متواجدين الان

    • لايوجد اعضاء مسجلون يتصفحون هذه الصفحه
×
×
  • اضف...

Important Information