How can you make a query in MS Access, so that the fields are grouped into columns?
It is easier to explain through an example.
Table:
Br
Try like this
TRANSFORM Sum(tabl1.[Quantity]) AS SumOfQuantity
SELECT tabl1.[brand], Sum( tabl1.[Quantity]) AS [Total Of Quantity]
FROM tabl1
GROUP BY tabl1.[brand]
PIVOT tabl1.[Date];
Or you can use 'Oleddbreader' for reading each record and formating it the way you want
command.excutereader for excuting query fill data in reader and use loop to print data the way you want, you can use column by column name you sum the numeric data, you can alot of tricks with Reader Command