Ashish Batham
Member
sql = "SELECT left(Extract.[Lgl Port Code],4) as Expr1, Sum(Extract.[Sum Curr Book Val Amt]) AS Book, Sum(Extract.[Sum Curr Mkt Val Amt]) AS Mkt, Sum(Extract.[sum Functional Face Shr Amt]) AS Par " & _"FROM Extract GROUP BY left(Extract.[Lgl Port Code],4) ORDER BY left(Extract.[Lgl Port Code],4)"
--------------------------------------------------------------------------------
Port = Cells(intCounter, 1)
----------------------------------------------------------------------------
Loop Until Port = rs("Expr1").Value
---------------------------------------------------------------------------
--------------------------------------------------------------------------------
Port = Cells(intCounter, 1)
----------------------------------------------------------------------------
Loop Until Port = rs("Expr1").Value
---------------------------------------------------------------------------