peterhinton
Active Member
- Joined
- Mar 8, 2016
- Messages
- 336
Hi All,
I populate a pivot table using some SQL,
the start of my code looks like:
Where I declare the values for CW,CM,CQ I want that to reference Cells B1,C1,D1 respectively,
How can this be done, If it can be done that is ?
EDIT - TITLE GOT MESSED UP SOMEHOW LOL
I populate a pivot table using some SQL,
the start of my code looks like:
Rich (BB code):
DECLARE
@CW INT, @CM INT, @CQ VARCHAR(4);
SET
@CW=19;SET @CM = 5;SET @CQ ='QTR2'
SELECT
--CHOOSE BRANCH INFO TO USE AND FILTER IN PIVOT
SA
.BRANCHNO As' Branch No'
,
EU.[STORE NAME] As'Branch Name'
,
EU.COUNTRY
Where I declare the values for CW,CM,CQ I want that to reference Cells B1,C1,D1 respectively,
How can this be done, If it can be done that is ?
EDIT - TITLE GOT MESSED UP SOMEHOW LOL
Last edited: