Have you tried the export wizard? You can set up a fixed width export and
save the export definition. You can also create a query for export. The
field can be concatenated together like:
ExpField: Left(YourField & Space(40),40) & Left(NextField & Space(12), 12)
--
Duane Hookom
MS Access MVP
Linda said:
Hi Duane,
This is what the field could look like:
TransNo
2347r8
45re45
23no0
qw4
I'm creating a file to upload to a mainframe. All the fields are fixed width
and, in some cases, the data going into the fields will not be the same.
In the past I've used this in a query:
TextVI: [Vend-Inv-No] & Left([Spaces],[DifVI])
after I've created a separate "Spaces" field for each record . The default
value for the Spaces field was " ". I would
subtract the length of each Vend-Inv-No from the Spaces field and call it
DifVI then that would be concatenated on to the Vend-Inv-No. It worked.
But.......
Is there an easier way to make sure that each variable length record
will
be
30 characters regardless of the length of each piece of data? If each record
were the same, I know I could just concatenate the remaining characters, but
the records could be of variable length.
I hope this explains.
You
can
have