modify text file from A97

  • Thread starter Thread starter KP
  • Start date Start date
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.
 
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.
 
Back
Top