i want Access to open a text file and remove certain characters before importing. Im struggling. Can anyone help me with my code please. I want to replace all instances of " with \. So far i have :
Dim mfile As String
Dim mfileO As String
mfile = "C:\WINNT\Profiles\mcgrco\Desktop\MYFILE.txt"
mfileO = "C:\WINNT\Profiles\mcgrco\Desktop\MYFILE1.txt"
Dim InputData
Open mfile For Input As #1
Do While Not EOF(1) ' Check for end of file.
Line Input #1, InputData
Any help would be greatfully appreciated
Dim mfile As String
Dim mfileO As String
mfile = "C:\WINNT\Profiles\mcgrco\Desktop\MYFILE.txt"
mfileO = "C:\WINNT\Profiles\mcgrco\Desktop\MYFILE1.txt"
Dim InputData
Open mfile For Input As #1
Do While Not EOF(1) ' Check for end of file.
Line Input #1, InputData
Any help would be greatfully appreciated