Hi,
I have a button that current just exports the results of a query into a text file onto the C:\. The output code I'm using now is:
The results of this is a table that looks like:
1234
1569
1478
1524
I'm trying to alter the output slightly but not change the data in the table itself so that it looks like:
C:\results\1234.txt
C:\results\1569.txt
C:\results\1478.txt
C:\results\1524.txt
Essentially just concatinating "C:\results\" & my_query & ".txt" but I'm not sure how to begin on getting here. Any ideas?
Thanks.
I have a button that current just exports the results of a query into a text file onto the C:\. The output code I'm using now is:
Code:
DoCmd.TransferText acExportDelim, , "my_query", "C:\results\output.txt", 1
The results of this is a table that looks like:
1234
1569
1478
1524
I'm trying to alter the output slightly but not change the data in the table itself so that it looks like:
C:\results\1234.txt
C:\results\1569.txt
C:\results\1478.txt
C:\results\1524.txt
Essentially just concatinating "C:\results\" & my_query & ".txt" but I'm not sure how to begin on getting here. Any ideas?
Thanks.