B
Bonnie A
Hi everyone, it's been awhile since I've been able to work with Access.
Using A02 on XP.
I have an extract file that I've imported to Access. The first field is
[GRPID] (the field is a number - I used Integer since it will never be more
than a whole number from 1 - 9999). I need to export Excel files, one for
each [GRPID] and name it [GRPID].xls.
I have a query, qtVtgAssetAcctBals, that pulls all the records I need. It
is sorted by [GRPID]. I have 26 records for '2', 13 records for '1137', 1666
records for '2543', etc. Lots of records. I would like to export the 26
records for '2' to a file named 2.xls, the 13 records to 1137.xls, etc.
There are over 200,000 records that I need to filter each quarter for this
project. Normally, we open the file and cut and paste each [GRPID] section.
There are over 500 [GRPID]'s. You can see why I want to make this better!
It would save HOURS every quarter.
I have a macro built using the 'Output To' Action. Object type is Query,
Object name is qtVtgAssetAcctBals, Output Format is Microsoft Excel (*.xls),
Output file now reads
S:\rps\PTS\VtgAssetAcctBalExtract\ExtractedFiles\[GRPID].xls
I am not sure how to write [GRPID] so the file will be named. I think I'm
close but no where near the cigar yet. Can you assist?
Thank you for your time and, hopefully, assistance.
Bonnie
Using A02 on XP.
I have an extract file that I've imported to Access. The first field is
[GRPID] (the field is a number - I used Integer since it will never be more
than a whole number from 1 - 9999). I need to export Excel files, one for
each [GRPID] and name it [GRPID].xls.
I have a query, qtVtgAssetAcctBals, that pulls all the records I need. It
is sorted by [GRPID]. I have 26 records for '2', 13 records for '1137', 1666
records for '2543', etc. Lots of records. I would like to export the 26
records for '2' to a file named 2.xls, the 13 records to 1137.xls, etc.
There are over 200,000 records that I need to filter each quarter for this
project. Normally, we open the file and cut and paste each [GRPID] section.
There are over 500 [GRPID]'s. You can see why I want to make this better!
It would save HOURS every quarter.
I have a macro built using the 'Output To' Action. Object type is Query,
Object name is qtVtgAssetAcctBals, Output Format is Microsoft Excel (*.xls),
Output file now reads
S:\rps\PTS\VtgAssetAcctBalExtract\ExtractedFiles\[GRPID].xls
I am not sure how to write [GRPID] so the file will be named. I think I'm
close but no where near the cigar yet. Can you assist?
Thank you for your time and, hopefully, assistance.
Bonnie