Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access data in Pivot table wrong

Status
Not open for further replies.

dw1

IS-IT--Management
Oct 2, 2002
47
US
I have a table with a "Sites" field lnked from another database. In the table I have a lookup for the "Sites". I have linked the SITEID and SITENAME to create drop down combo box in the SITE field. The displayed data is the SITENAME but when I create a pivot table in Excel I get the SITEID instead of the SITENAME. How do I get the SITENAME?



 
You're probably getting SITEID because he's the bound column of the Combo Box - and you probably don't want to change that. So you'll need to alter your process a bit to deliver the contents of the UNBOUND column to Excel somehow. Without knowing the details, I hesitate to recommend an exact solution.

You refer to other columns in a combo box with a zero-based index. Col 1 in the combo is ComboName.Columns(0), for example, and col 2 in the combo is ComboName.Columns(1) and so on.

JMH

Me? Ambivalent? Well, yes and no....
Another free Access forum:
More Access stuff at
 
write a query based on your table, making a join with the table of SiteID/SiteName. output the field SiteName instead of SiteID. use that query to go to excel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top