alistercruickshanks
New member
- Local time
- Today, 02:45
- Joined
- Feb 13, 2017
- Messages
- 6
Hi, I am hoping someone can help as I am struggling with this and my knowledge of VB is limited!
We are using the new Royal Mail DMO system that basically imports tab delimited text files for auto printing tables.
Our database has the data, and indeed I can easily export the data in the right folder. but the specification requires an opening line.
I am using this;
DoCmd.TransferText acExportDelim, "", "RM-48-FL", "\\path\.txt", False, ""
RM-48-FL is the query that contains the data that needs to be exported as a text file.
We need to add a line "ADD WTS" at the start.
So for example, the txt file should be;
ADD WTS
1, 2, 3, 4, 5, 6, 7, 8
1, 2, 3, 4, 5, 6, 7, 8
1, 2, 3, 4, 5, 6, 7, 8
If anyone can help as I am stuck!
We are using the new Royal Mail DMO system that basically imports tab delimited text files for auto printing tables.
Our database has the data, and indeed I can easily export the data in the right folder. but the specification requires an opening line.
I am using this;
DoCmd.TransferText acExportDelim, "", "RM-48-FL", "\\path\.txt", False, ""
RM-48-FL is the query that contains the data that needs to be exported as a text file.
We need to add a line "ADD WTS" at the start.
So for example, the txt file should be;
ADD WTS
1, 2, 3, 4, 5, 6, 7, 8
1, 2, 3, 4, 5, 6, 7, 8
1, 2, 3, 4, 5, 6, 7, 8
If anyone can help as I am stuck!