Results 1 to 5 of 5
  1. #1
    Join Date
    May 2007
    Posts
    31

    Unanswered: deleting linked text file entries

    I would like to take an external text file which is being populated by another process, and put those text records into an Access table. This is not a problem.

    Once the records are put into Access I'd like to remove the entries from the linked text file.

    If I try to manipulate (change or delete) any existing records in the linked table I get an error saying that the isam doesn't support the action that I'm trying take.

    Would it be possible to alter the linked table information via a module and VB code.

    I'm just really hoping to not have to remember to clean the text file (via Notepad) from time to time -

    Thanks for you suggestion/comments,

    sheila

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    What happens if you delete the textfile and re-make it?
    George
    Home | Blog

  3. #3
    Join Date
    May 2007
    Posts
    31
    Would rather not - right now the orginal file is being created via a required testing process - but that is a possible solution.

    Thanks!

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    Provided Answers: 10
    Ok, how's about this. Replacing the existing file with a blank template (therefore no deletion required).

    Aternatively you will have to utilize the FileSystemObject and TextStream methods to manipulate the file.
    George
    Home | Blog

  5. #5
    Join Date
    May 2003
    Location
    Dallas
    Posts
    817
    Provided Answers: 5
    If the file is linked via an ISAM driver - and I believe it is - you CANNOT edit the data. This includes links to Excel files, txt, ascii, etc.

    Geo is probably right , can you not just recreate the file with the data that you want to export or append to the file using the filesystem object?
    Dale Houston, TX

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •