G
Guest
I am trying to open a text file, convert data in the file and then output it
to another text file before I import it to Access.
I keep getting a runtime error '52' Bad file name or number using the
following filename. Only thing I can think of is my database is not on the
same drive as these files are. Or should this be a function? I am not very
well trained in vba so any help is appreciated.
Public Sub OpenTextFile()
Open "Q:\ScanSrs\Database\2007\Oper Reports\PUMSSUMOPER2.TXT" For Input As
#fIn
Open "Q:\ScanSrs\Database\2007\Oper Reports\PUMSSUMOPER3.TXT" For Output As
#fOut
to another text file before I import it to Access.
I keep getting a runtime error '52' Bad file name or number using the
following filename. Only thing I can think of is my database is not on the
same drive as these files are. Or should this be a function? I am not very
well trained in vba so any help is appreciated.
Public Sub OpenTextFile()
Open "Q:\ScanSrs\Database\2007\Oper Reports\PUMSSUMOPER2.TXT" For Input As
#fIn
Open "Q:\ScanSrs\Database\2007\Oper Reports\PUMSSUMOPER3.TXT" For Output As
#fOut