J
Jennifer
Every month I use macros to automatically take an excel spreadsheet with
billing data with customers and cost centers and upload it into Access. I
then use a series of queries to create sums for all the months for each
customer under each cost center. I then take these sums and insert them into
a summary worksheet that calculates what I will bill for the next month.
This is an example of the output:
Customer Cost Center1 Cost Center2
C1 1158869.68 45153.19113
C2 0 0
C3 0 885.3651461
However, in the next month I will be adding new cost centers. So my
question is: How do I automatically add new fields when using a macro to
transfer a spreadsheet? (If I tried right now without doing anything, it
says field doesn't exist in destination table)
billing data with customers and cost centers and upload it into Access. I
then use a series of queries to create sums for all the months for each
customer under each cost center. I then take these sums and insert them into
a summary worksheet that calculates what I will bill for the next month.
This is an example of the output:
Customer Cost Center1 Cost Center2
C1 1158869.68 45153.19113
C2 0 0
C3 0 885.3651461
However, in the next month I will be adding new cost centers. So my
question is: How do I automatically add new fields when using a macro to
transfer a spreadsheet? (If I tried right now without doing anything, it
says field doesn't exist in destination table)