B
Betti via AccessMonster.com
Good day,
I used two quires to create a header and detail record for a fixed-width file
and used two macros to export the data using the Transfer Text action with a
Export Specification file which in turn is creating two files instead of one
(One for the header and one for the detail record) . When I tried having two
actions writing to the same data file the second action over writes what the
first action wrote. Is there any way of writing a macro to create one file
to export the two quires using two specification files?
The following is what my one macro looks like:
Action: TransferText
Transfer Type: Export Fixed Width
Specification Name: QryFormatedHeader
Table Name: qryHeader
File Name: C:\datafileH.txt
Has Filed Name: No
Action: TransferText
Transfer Type: Export Fixed Width
Specification Name: QryFormatedDetail
Table Name: qryDetail
File Name: C:\datafileD.txt
Has Filed Name: No
I am using the following DOS command to merge the two data files and creating
one file and would like to create a macro to do that for me instead of having
to do it manually:
Copy datafileH.txt + datafileD.txt
Thank you for all your help in advance.
I used two quires to create a header and detail record for a fixed-width file
and used two macros to export the data using the Transfer Text action with a
Export Specification file which in turn is creating two files instead of one
(One for the header and one for the detail record) . When I tried having two
actions writing to the same data file the second action over writes what the
first action wrote. Is there any way of writing a macro to create one file
to export the two quires using two specification files?
The following is what my one macro looks like:
Action: TransferText
Transfer Type: Export Fixed Width
Specification Name: QryFormatedHeader
Table Name: qryHeader
File Name: C:\datafileH.txt
Has Filed Name: No
Action: TransferText
Transfer Type: Export Fixed Width
Specification Name: QryFormatedDetail
Table Name: qryDetail
File Name: C:\datafileD.txt
Has Filed Name: No
I am using the following DOS command to merge the two data files and creating
one file and would like to create a macro to do that for me instead of having
to do it manually:
Copy datafileH.txt + datafileD.txt
Thank you for all your help in advance.