Hi Anthony,
I have a feeling this isn't possible and that Access requires exclusive access to the text file it links to. One work-round would be to make a temporary copy of the file and link to that. I don't know whether the VBA FileCopy statement is capable of copying an open file; if not, you can use Shell() to call XCOPY.
On Wed, 30 Aug 2006 20:21:02 -0700, Anthony E. Scandora, Jr. <Tony at AES Systems Corp dot com> wrote:
[Quoted Text] >I need to link a table to a text file that is always open as a service log >file. This is for read-only reporting, and I don't care if the file changes >after I open the table. I tried to link to the file, but Access refused. > >How can I link to an open text file? > >Thanks, >Tony Scandora >Tony at AES Systems Corp dot com
-- John Nurick [Microsoft Access MVP]
Please respond in the newgroup and not by email.
|