اخي ابو زاهر
اظن انت تريد هكذا
وهو يحتاج قليل من التعديل من الاخوه العباقره
Forms!frmSales!sh12 = (DSum("Alkmiah", "HRR", "Rajmsanf='" & werNumSenf() & "'" & " and month(Atarih)=12" & " and Nwaha='" & 13 & "'") > 0 = DSum("Alkmiah", "HRR", "Rajmsanf='" & werNumSenf() & "'" & " and month(Atarih)=11" & " and Nwaha='" & 13 & "'") = 0) - IIf(DSum("Alkmiah", "HRR", "Rajmsanf='" & werNumSenf() & "'" & " and month(Atarih)=12" & " and Nwaha='" & 14 & "'") > 0, DSum("Alkmiah", "HRR", "Rajmsanf='" & werNumSenf() & "'" & " and month(Atarih)=11" & " and Nwaha='" & 14 & "'"), 0)