myCriteria = "[File_No] = '" & Forms!frm_Patient_Drugs!Patient_No & "'"
myCriteria = myCriteria & " And [DoseID] = " & Me.ListDosing.Column(5)
Is_It_Used = DCount("*", "tbl_Prescription", myCriteria)
If Is_It_Used > 0 Then
MsgBox " This Medication was used in " & Me.Visit_Date & CountNum & vbCrLf & _
"" & vbCrLf, vbOK, "ÊäÈíå"
Cancel = True
Me.Undo
End If
اضقت على الكود بعد التعديل التاريخ
هل ما قمت به صحيح من الناحيه البرمجيه
ارجو التصحيح