> I am using .addnew to add 100 columns per record to a table from an array.
> Is there a way to loop through the code so as not to have to write 100
[quoted text clipped - 7 lines]
> Col(100)=rs!Array(99)
> tdf.update
Perhaps I am going about this incorrectly. My challenge seems well suited to
a pivot table, but I am not sure a pivot table will handle it. Essentially,
I have a table of sales data, with additional columns for cityID, storeID,
and customerID. I want to create a report for each cityID that has the
storeID as the columns, customerID as the rows, and sum of sales as the cell
value. The number of stores and customers varies by city, and the number of
stores in a city can be as high as 100.
I need a way to create a query or table of cityID header names (for each
city) as well as load the data into the apropriate columns in a query.
I won't try to explain the method to my madness. What do you suggest?
Jim
> Is there any particular reason why you're working with 100 columns? While
> there it is possible to do what you ask, I'm curious about the bigger
[quoted text clipped - 13 lines]
>> Col(100)=rs!Array(99)
>> tdf.update