1
我有一行代碼在MS Access中創建一個產生錯誤的CrossTab查詢。這個CrossTab查詢有什麼問題?
下面是代碼:
Dim cmd4 As OleDbCommand = New OleDbCommand("TRANSFORM First(y.Daily_Growth) AS FirstOfDaily_Growth Select y.Ticker FROM Daily_Growth_Rates AS y GROUP BY y.Ticker ORDER BY y.[Date] DESC PIVOT y.[Date]", Nordeen_Investing_3.con)
以下是錯誤:
Additional information: Too many crosstab column headers (7326).
我在做什麼錯?
如何限制日期範圍爲8個月? – gromit1
'WHERE y.Date> =#2013-1-1#AND y.Date <#2013-9-1#' – HansUp
如何讓這種動態?所以它總是過去8個月? – gromit1