Hi,
I am running a report from a VB application where I create the SQL query. I need all of the info below but I also need the recordcount passed into the report, somewhere in this query. The recordcount info must be contained within the query below so I can populate a field on my report. Can anyone help me with this?
Any help gratefully received!
SELECT tblCalendar.Date,
tblPupil.Forename, tblPupil.Surname, tblPupil.Address_Line1, tblPupil.Address_Line2, tblPupil.Address_Line3, tblPupil.Class
From tblCalendar, tblPupil
WHERE (((tblCalendar.Date)
IN (SELECT [Date] FROM tblCalendar
WHERE tblCalendar.[Date]>=#2003/01/14#
AND tblCalendar.[Date]<=#2003/04/22#
AND tblCalendar.Description = 'SCH')
AND (tblCalendar.Date)
NOT IN
(SELECT [Date] FROM tblTimes WHERE tblTimes.FacilStuID ='00-0041')) AND ((tblPupil.FacilStuID)='00-0041'))
I am running a report from a VB application where I create the SQL query. I need all of the info below but I also need the recordcount passed into the report, somewhere in this query. The recordcount info must be contained within the query below so I can populate a field on my report. Can anyone help me with this?
Any help gratefully received!
SELECT tblCalendar.Date,
tblPupil.Forename, tblPupil.Surname, tblPupil.Address_Line1, tblPupil.Address_Line2, tblPupil.Address_Line3, tblPupil.Class
From tblCalendar, tblPupil
WHERE (((tblCalendar.Date)
IN (SELECT [Date] FROM tblCalendar
WHERE tblCalendar.[Date]>=#2003/01/14#
AND tblCalendar.[Date]<=#2003/04/22#
AND tblCalendar.Description = 'SCH')
AND (tblCalendar.Date)
NOT IN
(SELECT [Date] FROM tblTimes WHERE tblTimes.FacilStuID ='00-0041')) AND ((tblPupil.FacilStuID)='00-0041'))