L
lorirobn
Hi,
I have been manually importing a text file on a weekly basis to an
Access table. The data on one field is about to change (happens to be
the first field). It was numeric, and is defined as numeric on the
Access table. Now it will have a prefix of "K", for example: K00075.
I would like to create a procedure in my Access database that strips
the "K" off the field, and inserts the rest of the data into the table.
I know I can do it manually in Word or an application like that before
I import it, but I'd prefer to streamline the process now.
How can I can read the input file, strip the K off, and write an
output file without the K. Then import this 2nd file into my database?
I have never written anything within Access to read/write external
files before (only in COBOL, only a tad bit different!). Is this done
in a module, a macro, or what? Is that the best way to do this?
I would just like to sort-of replicate my manual process, which was:
Get External Data, Import file with delimiters, Load into Existing
table AFTER STRIPPING THE K. Can I automate something like that?
Thanks a bunch in advance,
Lorirobn
ps - I cannot get the file without the K.
I have been manually importing a text file on a weekly basis to an
Access table. The data on one field is about to change (happens to be
the first field). It was numeric, and is defined as numeric on the
Access table. Now it will have a prefix of "K", for example: K00075.
I would like to create a procedure in my Access database that strips
the "K" off the field, and inserts the rest of the data into the table.
I know I can do it manually in Word or an application like that before
I import it, but I'd prefer to streamline the process now.
How can I can read the input file, strip the K off, and write an
output file without the K. Then import this 2nd file into my database?
I have never written anything within Access to read/write external
files before (only in COBOL, only a tad bit different!). Is this done
in a module, a macro, or what? Is that the best way to do this?
I would just like to sort-of replicate my manual process, which was:
Get External Data, Import file with delimiters, Load into Existing
table AFTER STRIPPING THE K. Can I automate something like that?
Thanks a bunch in advance,
Lorirobn
ps - I cannot get the file without the K.