Help with pivot

A

Alan

I have this

strSQL = strSQL & " Pivot [Sales Analysis].[Quarter] In (1,2,3,4)"

with text box named 1,2,3,4


and then i have this

strSQL1 = strSQL1 & " Pivot [1a11f raw].[Quarterly] in (1f,2f,3f,4f)"

with text box name 1f,2f,3f,4f,

why doesn't that second part work??
 
J

John Spencer

1,2,3,4 are number values and don't require text delimiters.
1f,2f etc are text values and require text delimiters.

" Pivot [1a11f raw].[Quarterly] in ('1f','2f','3f','4f')"

John Spencer
Access MVP 2002-2005, 2007-2010
The Hilltop Institute
University of Maryland Baltimore County
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Pivot fields 0
SELECT SQL, can you have two 3
VBA code for my report 5
VBA code for my report 0
VBA code for my report 0
Adding report with another 0
Change a report to a query 1
Help With Parsing Data 5

Top