اذهب الي المحتوي
أوفيسنا

حذف سجل من جدولين متشابهين


SAYEDaly

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

ما هو الخطا فى هذا الكود

 

DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE Cheqtran.id, Cheqtran.accunt_id, Cheqtran.accunt_name, Cheqtran.date, Cheqtran.debt, Cheqtran.credit, Cheqtran.entryn, Cheqtran.entryexpln FROM Cheqtran WHERE (((Cheqtran.id)=Forms!Chequevocher!CheSubform.Form!IDD) And ((Cheqtran.accunt_id)=Forms!Chequevocher!CheSubform.Form!No_account) And ((Cheqtran.accunt_name)=Forms!Chequevocher!CheSubform.Form!Account_name) And ((Cheqtran.date)=Forms!Chequevocher!CheSubform.Form!Datetrans) And ((Cheqtran.debt)=Forms!Chequevocher!CheSubform.Form!Ammount) And ((Cheqtran.credit)=Forms!Chequevocher!CheSubform.Form!Credit) And ((Cheqtran.entryn)=Forms!Chequevocher!CheSubform.Form!no_entry) And ((Cheqtran.entryexpln)=Forms!Chequevocher!CheSubform.Form!details))"
DoCmd.SetWarnings True
Me.Requery

Untitled333.jpg.2ed05866a78b15d1609b2863Database10.rar

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

18 ساعات مضت, SAYEDaly said:

ما هو الخطا فى هذا الكود

يصبح الكود ... :fff:

Private Sub Command24_DblClick(Cancel As Integer)
If MsgBox("  åá ÊÑíÏ ÍÜÜÜÐÝ ÇáÓÌá ÇáÍÇáì ¿ ", vbYesNo, " ÊäÈíÉ ") = vbNo Then
Exit Sub
Else
DoCmd.SetWarnings False
DoCmd.RunSQL "DELETE Cheqtran.id, Cheqtran.accunt_id, Cheqtran.accunt_name, Cheqtran.date, Cheqtran.debt, Cheqtran.credit, Cheqtran.entryn, Cheqtran.entryexpln FROM Cheqtran WHERE (((Cheqtran.id)=Forms!Chequevocher!CheSubform.Form!IDD) And ((Cheqtran.accunt_id)=Forms!Chequevocher!CheSubform.Form!No_account) And ((Cheqtran.accunt_name)=Forms!Chequevocher!CheSubform.Form!Account_name) And ((Cheqtran.date)=Forms!Chequevocher!CheSubform.Form!Datetrans) And ((Cheqtran.debt)=Forms!Chequevocher!CheSubform.Form!Ammount) And ((Cheqtran.credit)=Forms!Chequevocher!CheSubform.Form!Credit) And ((Cheqtran.entryn)=Forms!Chequevocher!CheSubform.Form!no_entry) And ((Cheqtran.entryexpln)=Forms!Chequevocher!CheSubform.Form!details))"
DoCmd.SetWarnings True
Me.Requery
End If
End Sub

انت نسيت Else ... 

و مكان End If كان خطأ ...

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

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