modify text file from A97

K

KP

I need help with modifying a text file from Access 97. I save a text file in
a directory, once that is done I want access to automatically open that file
add some information in the beginning of the file and save it.
Is this possible? If yes, how? Can I please get some code as an example.

Thank you.
 
C

Cheryl Fischer

AFAIK, the Windows filesystem does not support "pre-pending" data into text
files. The only thing I could recommend is to create a new file, write
your string, then open the saved file and append each line from it into the
new file you have created. To do this, you would use the Open and Input #
Statements, among others. You can get more information on these statements
in VBA Help.

Perhaps if you posted back with more details, another alternative might be
available.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top