Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: Export as ascii and append to existing file

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Export as ascii and append to existing file
Eva at Work 20.07.2006 11:35:02
I have an ascii file (slsinv.asc) updated daily through my ERP system which
captures invoicing information. I have a DB that contains archived invoicing
information.

I want to APPEND the archived data into the existing slsinv.asc file. I need
the data to be COMBINED since the slsinv file is part of an OLAP cube.

Is it POSSIBLE to APPEND an ascii file to another ascii file?
Or will I have to take the slsinv.asc and combine it with the archived data
and THEN feed it to my cube?
--
Eva H. Linich
Business Applications Analyst

Re: Export as ascii and append to existing file
John Nurick <j.mapSoN.nurick[ at ]dial.pipex.com> 25.07.2006 05:23:58
Hi Eva,

Access's standard text export system cannot append new data to an
existing text file. The alternatives include:

1) export the new data to a new file and concatenate this to the
existing one, e.g.
Shell "COPY slsinv.asc + newfile.asc slsinv.asc"

2) export both new and existing data to a new file.

3) write a procedure that uses VBA file I/O (e.g. the Open, Print and
Close statements) to append the new lines to the existing file.



On Thu, 20 Jul 2006 04:35:02 -0700, Eva at Work <elinich[ at ]crescor.com>
wrote:

[Quoted Text]
>I have an ascii file (slsinv.asc) updated daily through my ERP system which
>captures invoicing information. I have a DB that contains archived invoicing
>information.
>
>I want to APPEND the archived data into the existing slsinv.asc file. I need
>the data to be COMBINED since the slsinv file is part of an OLAP cube.
>
>Is it POSSIBLE to APPEND an ascii file to another ascii file?
>Or will I have to take the slsinv.asc and combine it with the archived data
>and THEN feed it to my cube?

--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Re: Export as ascii and append to existing file
Eva at Work 09.08.2006 13:12:01
John,
Thanks! I'm going to give these options a try.
Appreciate the assistance.

Good days to you!
--
Eva H. Linich
Business Applications



"John Nurick" wrote:

[Quoted Text]
> Hi Eva,
>
> Access's standard text export system cannot append new data to an
> existing text file. The alternatives include:
>
> 1) export the new data to a new file and concatenate this to the
> existing one, e.g.
> Shell "COPY slsinv.asc + newfile.asc slsinv.asc"
>
> 2) export both new and existing data to a new file.
>
> 3) write a procedure that uses VBA file I/O (e.g. the Open, Print and
> Close statements) to append the new lines to the existing file.
>
>
>
> On Thu, 20 Jul 2006 04:35:02 -0700, Eva at Work <elinich[ at ]crescor.com>
> wrote:
>
> >I have an ascii file (slsinv.asc) updated daily through my ERP system which
> >captures invoicing information. I have a DB that contains archived invoicing
> >information.
> >
> >I want to APPEND the archived data into the existing slsinv.asc file. I need
> >the data to be COMBINED since the slsinv file is part of an OLAP cube.
> >
> >Is it POSSIBLE to APPEND an ascii file to another ascii file?
> >Or will I have to take the slsinv.asc and combine it with the archived data
> >and THEN feed it to my cube?
>
> --
> John Nurick [Microsoft Access MVP]
>
> Please respond in the newgroup and not by email.
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net