Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
TRANSFORM Sum(Issue.Amount) AS SumOfAmount
SELECT Issue.ItemName
FROM Issue
GROUP BY Issue.ItemName
PIVOT Format([IssueDate],"yyyy");
TRANSFORM Sum(Issue.Amount) AS SumOfAmount
SELECT Issue.ItemName
FROM Issue
GROUP BY Issue.ItemName
PIVOT Format([IssueDate],"yyyy") [b][COLOR=red]In (2003,2004,2005)[/color][/b];
Sub LoadList()
Dim strSQL As String
strSQL = "TRANSFORM Sum(Issue.Amount) AS SumOfAmount SELECT Issue.ItemName FROM Issue GROUP BY Issue.ItemName " & Me.TxtHeadings.Value
Me.List0.RowSource = strSQL
End Sub
[COLOR=green]'=====================================[/color]
Private Sub cmdLoadList_Click()
LoadList
End Sub
[COLOR=green]'===================================[/color]
Private Sub Form_Load()
Me.TxtHeadings.Value = "PIVOT Format([IssueDate],'yyyy')In(2003,2004,2005,2006)"
End Sub