Re: search and replace text in text file from access
From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 12/04/04
- Next message: Alp: "Re: Possible results of renaming a field?"
- Previous message: Ken Snell [MVP]: "Re: Is possible use to setup a cash drawer in an Access form"
- In reply to: fly_by_night: "search and replace text in text file from access"
- Next in thread: at: "Re: search and replace text in text file from access"
- Reply: at: "Re: search and replace text in text file from access"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 4 Dec 2004 11:58:45 +0800
The safe way to do this with pure VBA would be:
- Open the file for input
- Open a temp file for output
- InputLine
- Replace()
- Print #
- Loop until EOF
- Close both
- Kill the orginal
- Name the 2nd as the first.
-- Allen Browne - Microsoft MVP. Perth, Western Australia. Tips for Access users - http://allenbrowne.com/tips.html Reply to group, rather than allenbrowne at mvps dot org. "fly_by_night" <fly_by_night@discussions.microsoft.com> wrote in message news:71B1B11F-E800-4731-92DA-4EF5EFFA5BC7@microsoft.com... > Is there a way to search and replace a piece of text in a text file from > an > Access module? > > Any help is appreciated. thanks!
- Next message: Alp: "Re: Possible results of renaming a field?"
- Previous message: Ken Snell [MVP]: "Re: Is possible use to setup a cash drawer in an Access form"
- In reply to: fly_by_night: "search and replace text in text file from access"
- Next in thread: at: "Re: search and replace text in text file from access"
- Reply: at: "Re: search and replace text in text file from access"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|