bitsmith2k
Programmer
Hey guys, thought I'd make a post here before I called it a day. Hopefully someone can point me in the right direction.
I'll try to provide as much info as possible.
I can query the db for my desired results with this:
It gives my the correct numbers in the output.
(the query basically came from my report, I put the group by, and sum in it so that i could see the totals in the qa)
When I try to format the report, I use a SUM on the QTY field, but I am not getting the proper numbers. It comes up short.
Any suggestions?
thanks,
mike
here's the view:
I'll try to provide as much info as possible.
I can query the db for my desired results with this:
Code:
SELECT
sum (vwReportA.QTY)'QTY', vwReportA.Event, vwReportA.Category, vwReportA.Subcategory
FROM
XPress.dbo.vwReportA vwReportA
WHERE
vwReportA.Category LIKE '%' AND
vwReportA.Subcategory LIKE '%' AND
vwReportA.Date >= "Jul 1 2003 00:00:00AM" AND
vwReportA.Date <= "Jul 31 2003 11:59:59PM" AND
vwReportA.Event LIKE '%' and
vwReportA.Site LIKE 'Butterfly'
group by
event, category, subcategory
order by event, category, subcategory
It gives my the correct numbers in the output.
(the query basically came from my report, I put the group by, and sum in it so that i could see the totals in the qa)
When I try to format the report, I use a SUM on the QTY field, but I am not getting the proper numbers. It comes up short.
Any suggestions?
thanks,
mike
here's the view:
Code:
create view [ReportA] AS
select transid'ID', numofpeople'QTY', category'Category', subcategory'Subcategory', eventdate'Date', event'Event', eventsite'Site', NetPrice, GrossPrice, ItemTax, Status, 'TICKS' as tbl
from tblMain_TransTickets
where status not like '%Returned%' and tblMain_TransTickets.Category not like '%PASS%'