Originally Posted by
June7
You want to pivot (aka transpose, crosstab) the data. Use the Access query wizard and build a crosstab query. The Date field will be used as column headings, grouping on the UserID, use First aggregate function to retrieve the Amount. Unless there are multiple records for each month then use the Sum. Are there multiple years in this table? If so, probably want to add filter criteria. The SQL would be like:
TRANSFORM First(Table1.[Amount]) AS FirstOfAmount
SELECT Table1.[UserID]
FROM Table1
GROUP BY Table1.[UserID]
PIVOT Format([Date],"mmm") In ("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug"," Sep","Oct","Nov","Dec");
Or if that Date field is really text, like:
TRANSFORM First(Table1.[Amount]) AS FirstOfAmount
SELECT Table1.[UserID]
FROM Table1
GROUP BY Table1.[UserID]
PIVOT Table1.[Date];