B
Bob Ewers
I've got a form that sets query parameters and creates the following SQL statement
SQLstmt = strSelect & " [SELECT " & strUnionSelect1 &
" WHERE rpm_date >= " & Format(startdate, "\#mm/dd/yyyy\#") &
" AND rpm_date <= " & Format(EndDate, "\#mm/dd/yyyy\#") &
" UNION SELECT " & strUnionSelect2 &
" WHERE trade_date >= " & Format(startdate, "\#mm/dd/yyyy\#") &
" AND trade_date <= " & Format(EndDate, "\#mm/dd/yyyy\#") &
"]. AS [%$##@_Alias]" &
" WHERE " & strWhere &
" ORDER BY " & strOrde
How can I make a crosstab query from this?
Thanks in advance.
SQLstmt = strSelect & " [SELECT " & strUnionSelect1 &
" WHERE rpm_date >= " & Format(startdate, "\#mm/dd/yyyy\#") &
" AND rpm_date <= " & Format(EndDate, "\#mm/dd/yyyy\#") &
" UNION SELECT " & strUnionSelect2 &
" WHERE trade_date >= " & Format(startdate, "\#mm/dd/yyyy\#") &
" AND trade_date <= " & Format(EndDate, "\#mm/dd/yyyy\#") &
"]. AS [%$##@_Alias]" &
" WHERE " & strWhere &
" ORDER BY " & strOrde
How can I make a crosstab query from this?
Thanks in advance.