M
Mark M Simonian
I have a Crosstab query and am having trouble figuring out how to indicate a
date range that is 30 days beyond the date field called Anniversary.
This is the SQL:
TRANSFORM Count(tblMain.ID) AS CountOfID
SELECT tblMain.GroupName, tblMain.LastName, Sum(tblMain.Dues) AS [Total Of
Dues]
FROM tblMain
WHERE (((tblMain.Association)="Associate") AND
((tblMain.Anniversary)>DateAdd("yy",+30,[Anniversary])))
GROUP BY tblMain.GroupName, tblMain.LastName
PIVOT tblMain.Dues;
This part is incorrect and how would I change it?
Mark M. Simonian MD FAAP
Medical Director, ChildNet Medical Associates
5305 N Fresno St 105A
Fresno, CA 93710
(559) 221-7192
(e-mail address removed)
www.markmsimonian.medem.com
*************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.
date range that is 30 days beyond the date field called Anniversary.
This is the SQL:
TRANSFORM Count(tblMain.ID) AS CountOfID
SELECT tblMain.GroupName, tblMain.LastName, Sum(tblMain.Dues) AS [Total Of
Dues]
FROM tblMain
WHERE (((tblMain.Association)="Associate") AND
((tblMain.Anniversary)>DateAdd("yy",+30,[Anniversary])))
GROUP BY tblMain.GroupName, tblMain.LastName
PIVOT tblMain.Dues;
This part is incorrect and how would I change it?
*********************DateAdd("yy",+30,[Anniversary])))
Mark M. Simonian MD FAAP
Medical Director, ChildNet Medical Associates
5305 N Fresno St 105A
Fresno, CA 93710
(559) 221-7192
(e-mail address removed)
www.markmsimonian.medem.com
*************************
Alert: This email and any files transmitted with it
are intended solely for the use of the individual or
entity to whom they are addressed and may contain
confidential, patient health or other legally
privileged information. If you have received this
email in error please notify the sender by email,
delete and destroy this message and its attachments.
Any unauthorized review, use, disclosure,
or distribution is prohibited.