I have been struggling with this report issue for awhile. I would appreciate any thoughts/insights.
I have a table called invoices, which contains the following fields
INVOICEID
GUESTID
BOOKINGSID
InvoiceDate
RoomNo
PRODUCTID - contains rooms/massage/taxi/extra bed/Laundry (Via a lookup)
Amount
PaymentType - contains; cash / credit cards/ bank transfer (Via a lookup)
Shift Morning/Afternoon (Via a lookup)
I need to create a report in the following format;
The date down the First column, the products along the top with the payment types under the products.
For example along the top of the report the word ROOM, spanning 3 columns. Column 1 heading is CASH, Column 2 heading is CREDIT CARD and Column 3 heading is Bank Transfer, then next to ROOM is the word LAUNDRY, spanning 3 columns. Column 1 heading is CASH, Column 2 heading is CREDIT CARD and Column 3 heading is Bank Transfer. ETC
Basically the idea of the report is to summarize the daily sales for each product, separated into payment types
I hope I have explained this properly, please forgive my "newbieness"
I have created a crosstab query that will give me the data that i want but i dont know how to show the data in the report. I only want one row per date but i am getting multiple rows
My crosstab query is;
TRANSFORM Sum(Invoices.Amount) AS SumOfAmount
SELECT Invoices.InvoiceDate, Invoices.PRODUCTID
FROM PaymentTypes INNER JOIN Invoices ON PaymentTypes.ID = Invoices.PaymentType
GROUP BY Invoices.InvoiceDate, Invoices.PRODUCTID
PIVOT PaymentTypes.PaymentTypes;
I dont know my next step or how to get / link all the productIds together in one report. There are a total of 5 products.
Once this is done my DB is almost finished
PLease find attached a stripped down version of the DB
NEW_2013-11-09.zip
Any help is greatly appreciated
Regards,
Chopper