Question : How can I substract todays dates from the initial date?

I would like to create a field in query in access which finds the total days of the patient being treated in hospital. for example the patient was admitted to the ward on 26/05/08 if the patient is discharged  today. it will find the difference which is 7 days.

Answer : How can I substract todays dates from the initial date?

in the design view of your query


  Field  : Difference:DateDiff("d",[patient_start_date],[patient_end_date])
  Table :
  Sort   :
  Show:
Criteria


Random Solutions  
 
programming4us programming4us