Skip to content

Commit

Permalink
Merge pull request #580 from woook/dev_v3.114
Browse files Browse the repository at this point in the history
Add CJB to ArrayAnalysisChecks
  • Loading branch information
Aled Jones authored Sep 2, 2019
2 parents 2ef80c4 + 12cea04 commit a781e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion forms/989 ArrayAnalysisChecks
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Private Function update_recordsource()
sql_record_source = "TRANSFORM Count(Checker.Initials) AS CountOfInitials " _
& "SELECT ResultCode_1.ResultCode " _
& "FROM ((((ArrayTest INNER JOIN Checker ON ArrayTest.Check2ID = Checker.Check1ID) INNER JOIN ResultCode ON ArrayTest.ArrayResultCodeID = ResultCode.ResultCodeID) INNER JOIN Patients ON ArrayTest.InternalPatientID = Patients.InternalPatientID) INNER JOIN ResultCode AS ResultCode_1 ON Patients.OverallResultCodeID = ResultCode_1.ResultCodeID) INNER JOIN Referral ON ArrayTest.ReferralID = Referral.ReferralID " _
& "WHERE (((Checker.Initials) Like 'AFD' Or (Checker.Initials) Like 'CVL' Or (Checker.Initials) Like 'AC' Or (Checker.Initials) Like 'SCH' Or (Checker.Initials) Like 'AFD' Or (Checker.Initials) Like 'APW' Or (Checker.Initials) Like 'SB' Or (Checker.Initials) Like 'CD') And ((arraytest.Service) = True) And ((Referral.ReferralID) = " & Me.referral_combo & ") And ((arraytest.ArrayResultDate) >= #" & start_date_formatted & "#) And ((arraytest.ArrayResultDate) <= #" & end_date_formatted & "#)) " _
& "WHERE (((Checker.Initials) Like 'AFD' Or (Checker.Initials) Like 'CVL' Or (Checker.Initials) Like 'AC' Or (Checker.Initials) Like 'SCH' Or (Checker.Initials) Like 'AFD' Or (Checker.Initials) Like 'APW' Or (Checker.Initials) Like 'SB' Or (Checker.Initials) Like 'CD' Or (Checker.Initials) Like 'CJB') And ((arraytest.Service) = True) And ((Referral.ReferralID) = " & Me.referral_combo & ") And ((arraytest.ArrayResultDate) >= #" & start_date_formatted & "#) And ((arraytest.ArrayResultDate) <= #" & end_date_formatted & "#)) " _
& "GROUP BY ResultCode_1.ResultCode " _
& "PIVOT Checker.Initials;"

Expand Down

0 comments on commit a781e8c

Please sign in to comment.