A
Alan
I have a report which i need to report two sets of number on it from
different table,
example
strSQL = "TRANSFORM CCur(Nz(Sum([Amount]),0)) AS X"
strSQL = strSQL & " SELECT [" & TempVars![Display] & "] as
SalesGroupingField FROM [Sales Analysis] "
strSQL = strSQL & " Where [Year]=" & TempVars![Year]
strSQL = strSQL & " GROUP BY [" & TempVars![Group By] & "], [" &
TempVars![Display] & "]"
strSQL = strSQL & " Pivot [Sales Analysis].[Quarter] In (1,2,3,4)"
Me.RecordSource = strSQL
Me.SalesGroupingField_Label.Caption = TempVars![Display]
'strSQL1 = "TRANSFORM Ccur(Nz(Sum([Amount]),0)) AS Y"
' strSQL1 = strSQL1 & " SELECT [" & TempVars![Display1] & "] as
SalesGroupingField2 FROM [1a11f raw] "
'strSQL1 = strSQL1 & " Where [Year]=" & TempVars![Year1]
'strSQL1 = strSQL1 & " GROUP BY [" & TempVars![Group By1] & "], [" &
TempVars![Display1] & "]"
'strSQL1 = strSQL1 & " Pivot [1a11f raw].[Quarter] in (1,2,3,4)"
The question i'm asking can you do this?? because i'm not getting the second
amount
different table,
example
strSQL = "TRANSFORM CCur(Nz(Sum([Amount]),0)) AS X"
strSQL = strSQL & " SELECT [" & TempVars![Display] & "] as
SalesGroupingField FROM [Sales Analysis] "
strSQL = strSQL & " Where [Year]=" & TempVars![Year]
strSQL = strSQL & " GROUP BY [" & TempVars![Group By] & "], [" &
TempVars![Display] & "]"
strSQL = strSQL & " Pivot [Sales Analysis].[Quarter] In (1,2,3,4)"
Me.RecordSource = strSQL
Me.SalesGroupingField_Label.Caption = TempVars![Display]
'strSQL1 = "TRANSFORM Ccur(Nz(Sum([Amount]),0)) AS Y"
' strSQL1 = strSQL1 & " SELECT [" & TempVars![Display1] & "] as
SalesGroupingField2 FROM [1a11f raw] "
'strSQL1 = strSQL1 & " Where [Year]=" & TempVars![Year1]
'strSQL1 = strSQL1 & " GROUP BY [" & TempVars![Group By1] & "], [" &
TempVars![Display1] & "]"
'strSQL1 = strSQL1 & " Pivot [1a11f raw].[Quarter] in (1,2,3,4)"
The question i'm asking can you do this?? because i'm not getting the second
amount