Hi, I am trying to set up some reports or queries that show the difference between assessment scores. We are trying to set up queries and reports that show difference between scores if certain citeria are met, Eg between a data range, or for certain Programs. Each assessment has an initial assessment (AssessmentID=1 ) and then reassessments AssessmentID 2 or 3 or 4 etc). I guess what I am really looking for is a way to write a query where I can say show me the difference between AssessmnetID=1 and AssessmentID=2 and then between Assessment ID=2 and Assessment ID=3 and so on. I am wanting to use this to show scores that increase and decrease. I hope you can help. Below is the current SQL for the query I am using:
Code:
SELECT tblAssessment.AssessmentID
, tblAssessment.Client
, ([First Name] & " " & [Last Name]) AS [Client Name]
, tblClients.Program
, tblClients.[Last Name]
, tblAssessment.AssessDate
, tblAssessment.AssessmentType
, ([expliveindepend]+[LookForHousing]+[AccAffordHouse]+[HouseRelations]) AS Housing
, ([MedUnderstand]+[AdvocateWorkMeds]+[MedAdherance]+[MedRefills]+[MedDocComm]+[DocAdherence]) AS Medications
, tblAssessment.Expliveindepend
, tblAssessment.LookForHousing
, tblAssessment.AccAffordHouse
, tblAssessment.HouseRelations
, tblAssessment.MedUnderstand
, tblAssessment.AdvocateWorkMeds
, tblAssessment.MedAdherance
, tblAssessment.MedRefills
, tblAssessment.MedDocComm
, tblAssessment.DocAdherence
, tblAssessType.AssessID
FROM tblAssessType
INNER JOIN
(tblClients
INNER JOIN
tblAssessment
ON tblClients.CID = tblAssessment.Client)
ON tblAssessType.AssessID = tblAssessment.AssessmentType;
Comment