I have a main form “frmPatient”with the fields : PatientID, Name, Datein, DateOut,and DateDiff.
I have a subform “subformUseExams” with the fields “PatientID’’ and “Categoryname”(combobox)
In the afterupdate event of CategoryName I use this code:
Private Sub CategoryName_AfterUpdate ()
If IsNull(Forms!frmPatients!DateOut) Then Forms!frmPatients!DateOut = Date
EndSub
-I want the DateDiff value to be:[DateOut]-[Datein] and to fill automatically.
I tried in some ways but I couldn’t.
Any suggest?
I have a subform “subformUseExams” with the fields “PatientID’’ and “Categoryname”(combobox)
In the afterupdate event of CategoryName I use this code:
Private Sub CategoryName_AfterUpdate ()
If IsNull(Forms!frmPatients!DateOut) Then Forms!frmPatients!DateOut = Date
EndSub
-I want the DateDiff value to be:[DateOut]-[Datein] and to fill automatically.
I tried in some ways but I couldn’t.
Any suggest?