G
Guest
I need to create an export (text) file in which the "fields" are of a fixed
length and in some cases of a different length to those in the table/query.
For instance, on the example below, "txtacctnumb" need to be 20 characters in
length whereas in the table it is 10.
Do While Not rs.EOF
With rs
strAcct = strAcct + !txtAcctNumb
strAcct = strAcct + !txtAcctTitle
strAcct = strAcct + !txtAcctAddress1
strAcct = strAcct + !txtAcctPostCode
End With
Print #(iOFileNr), strAcct
rs.MoveNext
Loop
I would be grateful for any assistance on how to achieve this.
Thanks,
Dave
length and in some cases of a different length to those in the table/query.
For instance, on the example below, "txtacctnumb" need to be 20 characters in
length whereas in the table it is 10.
Do While Not rs.EOF
With rs
strAcct = strAcct + !txtAcctNumb
strAcct = strAcct + !txtAcctTitle
strAcct = strAcct + !txtAcctAddress1
strAcct = strAcct + !txtAcctPostCode
End With
Print #(iOFileNr), strAcct
rs.MoveNext
Loop
I would be grateful for any assistance on how to achieve this.
Thanks,
Dave