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

شرط وقت


co2002co

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

    myCriteria = "[File_No] = '" & Forms!frm_Patient_Drugs!text1 & "'"
        Is_It_Used = DCount("*", "tbl_MedicalReport", myCriteria)
        If Is_It_Used > 0 Then
            ulast = DLast("Visit_Date", "tbl_MedicalReport", myCriteria)
            unow = Form_frm_Patient_Drugs.iDate
            udiff = DateDiff("d", ulast, unow)
   If MsgBox("تم اعطاءه اجازه مرضيه بتاريخ" & ulast & vbCrLf & "هل ترغب بأعطائه اجازه مرضية اخرى ؟", vbExclamation + vbYesNo) = vbYes Then
    Forms!frm_Patient_Drugs!sfrm_Patient_Drugs.SetFocus
    DoCmd.GoToRecord , , acNewRec
   End If
   End If

 

 

 

ارجو التعديل على هذا الكود بحيث ان لطبيب ل يستطيع إعطاء المريض اجازه مرضيه الا بعد مضي 48 ساعه من اخر مره اخذ فيها اجازه

 

 

الكود من عمل المبدع الأخ محمد ايمن

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

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