hey there, i figured out that my problem was not what i previously thought it was.. i needed to change my record source rather than try to filter my report. thanks to the user who suggested this..
right now, this is the record source i have for my report Encounters.
right now, the above record source ONLY returns records where ENCOUNT.Type = "CLINIC-NEW" .. rather than those PLUS the TOP 5 records...
and when i remove the TOP 5 from the second part of the union query, it returns all records where ENCOUNT.Type = "CLINIC-NEW" and all the other records (as it should).. but i need to limit "all the other records" being returned to "only 5 records" returned.. see?
can anyone help me? i have a feeling im really close
right now, this is the record source i have for my report Encounters.
Code:
SELECT ENCOUNT.*
FROM ENCOUNT
WHERE (((ENCOUNT.Type)="CLINIC-NEW"))
UNION SELECT TOP 5 ENCOUNT.*
FROM ENCOUNT
ORDER BY ENCOUNT.Date ASC;
right now, the above record source ONLY returns records where ENCOUNT.Type = "CLINIC-NEW" .. rather than those PLUS the TOP 5 records...
Code:
SELECT ENCOUNT.*
FROM ENCOUNT
WHERE (((ENCOUNT.Type)="CLINIC-NEW"))
UNION SELECT ENCOUNT.*
FROM ENCOUNT
ORDER BY ENCOUNT.Date ASC;
and when i remove the TOP 5 from the second part of the union query, it returns all records where ENCOUNT.Type = "CLINIC-NEW" and all the other records (as it should).. but i need to limit "all the other records" being returned to "only 5 records" returned.. see?
can anyone help me? i have a feeling im really close