Open File

  • Thread starter Thread starter Nathan
  • Start date Start date
N

Nathan

is there a way i can open a file from the the file where
that database is

Eg. if the database is in c:\tempp2\
is there a way in the database to have it so if there is
a file in the folder with the databae called test.bat
i can go open."databasefolder/test.bat"
 
Nathan said:
is there a way i can open a file from the the file where
that database is

Eg. if the database is in c:\tempp2\
is there a way in the database to have it so if there is
a file in the folder with the databae called test.bat
i can go open."databasefolder/test.bat"
Dim txtFileName as string
txtFileName = "databasefolder/test.bat"
Open txtFileName For Input As #1

Check help for Open, Input, Write, Print, Close

I wrote the instruction this way because you still need to get the
current directory
and the file name for the open statement.


Ron
 
Back
Top