Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to add two fields into the row field of a pivot table?
Message
From
22/07/2005 06:06:53
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
How to add two fields into the row field of a pivot table?
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01035044
Message ID:
01035044
Views:
63
Hi all,

I want to add 2 fields(sex,emp_name) into the row field of a pivot table. I'm able to add in a field by using this code:
  WITH THISFORM._PIVOTTABLE
	.cAlias = ALIAS()
	.cDBCName = DBC()
	.cDBCTable = DBF()
	.cpivfldrow = ("sex")   <----------------------here                        
	.lHasColumnTotals = .T.
	.lHasRowTotals = .T.
	=ACOPY(aflds,.aAutoFields)
	=ACOPY(aFList,.aFldList)
	.MakeOutput()
  ENDWITH
But i can't add two fields into the pivot table, it always show error although i can visually in the excel. Can anybody tell me how to solve this?

Thanks.
Reply
Map
View

Click here to load this message in the networking platform