A
Andre C
I have a query from multiple tables which records visits to patients,
hence a patient can have more than one visit per month or infact none.
I want to produce ultimately a report but I guess a query first which
will sum up all visits to the patients over the last three months.
From this I will calculate which patients are highly dependent.
I can produce a query and a crosstab querry which counts the visits
per month but I juust want to count the vbisits over three months.
Fields I have which I think are relevent are
visitdate
ICSnumber (which is patientID)
also in query I have seperated visitmonth and visit year.
Any ideas. I have tried datediff with no sucess to date.
hence a patient can have more than one visit per month or infact none.
I want to produce ultimately a report but I guess a query first which
will sum up all visits to the patients over the last three months.
From this I will calculate which patients are highly dependent.
I can produce a query and a crosstab querry which counts the visits
per month but I juust want to count the vbisits over three months.
Fields I have which I think are relevent are
visitdate
ICSnumber (which is patientID)
also in query I have seperated visitmonth and visit year.
Any ideas. I have tried datediff with no sucess to date.