L
Lou
I have created this union query, I am running a report
based of this information. I dont understand how to write
SQL into this for sorting options like I do in query
design mode. Below is my union query when I run I also get
totaling results I didn't ask for.
SELECT [HistoryID], qryWeek1.CouponID,
qryWeek1.CouponType, qryWeek1.CouponName,
qryWeek1.DateReceived, qryWeek1.NumberReceived,
qryWeek1.CouponTag
FROM qryWeek1
UNION
SELECT [HistoryID], qryWeek2.CouponID,
qryWeek2.CouponType, qryWeek2.CouponName,
qryWeek2.DateReceived, qryWeek2.NumberReceived,
qryWeek2.CouponTag
FROM qryWeek2
UNION
SELECT [HistoryID], qryWeek3.CouponID,
qryWeek3.CouponType, qryWeek3.CouponName,
qryWeek3.DateReceived, qryWeek3.NumberReceived,
qryWeek3.CouponTag
FROM qryWeek3
UNION SELECT [HistoryID], qryWeek4.CouponID,
qryWeek4.CouponType, qryWeek4.CouponName,
qryWeek4.DateReceived, qryWeek4.NumberReceived,
qryWeek4.CouponTag
FROM qryWeek4;
ACCESS 2002
Thank you.
based of this information. I dont understand how to write
SQL into this for sorting options like I do in query
design mode. Below is my union query when I run I also get
totaling results I didn't ask for.
SELECT [HistoryID], qryWeek1.CouponID,
qryWeek1.CouponType, qryWeek1.CouponName,
qryWeek1.DateReceived, qryWeek1.NumberReceived,
qryWeek1.CouponTag
FROM qryWeek1
UNION
SELECT [HistoryID], qryWeek2.CouponID,
qryWeek2.CouponType, qryWeek2.CouponName,
qryWeek2.DateReceived, qryWeek2.NumberReceived,
qryWeek2.CouponTag
FROM qryWeek2
UNION
SELECT [HistoryID], qryWeek3.CouponID,
qryWeek3.CouponType, qryWeek3.CouponName,
qryWeek3.DateReceived, qryWeek3.NumberReceived,
qryWeek3.CouponTag
FROM qryWeek3
UNION SELECT [HistoryID], qryWeek4.CouponID,
qryWeek4.CouponType, qryWeek4.CouponName,
qryWeek4.DateReceived, qryWeek4.NumberReceived,
qryWeek4.CouponTag
FROM qryWeek4;
ACCESS 2002
Thank you.