[AccessD] Read External File for Path String

Dan Waters dwaters at usinternet.com
Fri Jan 20 09:07:45 CST 2006


Yes!  This worked.

Per Help, I placed a number sign (#) in front of 'f' after line input.  

Thanks!
Dan

-----Original Message-----
From: accessd-bounces at databaseadvisors.com
[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan
Sent: Thursday, January 19, 2006 9:13 PM
To: Access Developers discussion and problem solving
Subject: Re: [AccessD] Read External File for Path String

On 19 Jan 2006 at 18:26, Dan Waters wrote:

>> Try replacing it with CurrentProject.path
...
> I had done that already.  The path string is correct.

Here's an alternative, how does this one work:

Dim f as Long
dim strTemp as string
f=freefile
Open CurrentProject.Path & "\dbpath.dat" for input as f
line input f,strtemp
close f
-- 
Stuart


-- 
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com




More information about the AccessD mailing list