You have to delimit and concatenate, and since I don't see any quote marks or date delimiters it appears you're not doing that. That should explain why it doesn't work in either method. For vba method, maybe
"SELECT Count (cPosSizeR) AS fieldValue FROM StockTrades WHERE TradeDate >= #" & startDate & "# AND TradeDate <= #" & endDate & " AND " & [andClause]
although I don't know if SQL is a string variable or just a word you used to apply to the query sql property.
The more we hear silence, the more we begin to think about our value in this universe.
Paraphrase of Professor Brian Cox.