R
Ray
Hello all,
here is my problem:
i have created a macro to automate a monthly data pull,
create a crosstab query, and export to a text file. I have
also created an export specification for the text
transfer. The exported file contains 2 field headers,
field1 header never changes, but each month field2 changes
(it is a year/month field
header: '2003/11', '2003/12', '2004/1', etc.)
the specification that i set up expects 2 fields headers,
but since each month the header changes, the spec will not
work with this dynamically changing field header.
i believe what i have to do is this (but i am not sure how
to do it):
have the macro (or VB code) dynamically create and delete
a new export spec each month, or
somehow change the name of the field in the
MsysIMEXcolumns table, or
create a query where the header is dynamically named after
the current year and month of the data pull
any suggestions? any help is greatly appreciated
Ray
here is my problem:
i have created a macro to automate a monthly data pull,
create a crosstab query, and export to a text file. I have
also created an export specification for the text
transfer. The exported file contains 2 field headers,
field1 header never changes, but each month field2 changes
(it is a year/month field
header: '2003/11', '2003/12', '2004/1', etc.)
the specification that i set up expects 2 fields headers,
but since each month the header changes, the spec will not
work with this dynamically changing field header.
i believe what i have to do is this (but i am not sure how
to do it):
have the macro (or VB code) dynamically create and delete
a new export spec each month, or
somehow change the name of the field in the
MsysIMEXcolumns table, or
create a query where the header is dynamically named after
the current year and month of the data pull
any suggestions? any help is greatly appreciated
Ray