Hi,
I am working in Access 2007.
I have a report that runs off this query:
I need to group by Program and territory but Access forces me to group by all the other fields too. The problem with this is a duplicate record is not displayed on the report. I need to see that record. How do I work around this?
TIA!
~RLG
I am working in Access 2007.
I have a report that runs off this query:
Code:
SELECT Program.ProgramName,
Territory.Territory,
[FirstName] & ' ' & [MI] & ' ' & [LastName] AS FullName,
Patient.MRNum,
Ethnicity.Ethnicity,
Race.Race,
Patient.NavigatorDt
FROM Race
RIGHT JOIN (Program
INNER JOIN (Ethnicity
RIGHT JOIN (Patient
LEFT JOIN Territory
ON Patient.Territory = Territory.ID)
ON Ethnicity.ID = Patient.EthnicityID)
ON Program.ID = Patient.ProgramID)
ON Race.ID = Patient.RaceID
GROUP BY Program.ProgramName,
Territory.Territory,
[FirstName] & ' ' & [MI] & ' ' & [LastName],
Patient.MRNum,
Ethnicity.Ethnicity,
Race.Race,
Patient.NavigatorDt
HAVING (((Patient.NavigatorDt) Between [Forms]![frmRaceEthnicityDateParm]![BegDate] And [Forms]![frmRaceEthnicityDateParm]![EndDate]))
ORDER BY Program.ProgramName, Territory.Territory, Race.Race;
TIA!
~RLG