My question, how can I delete records in a text file on the server using ACCESS/Visual Basic ?
Code used - when the User clicks on a button in Access the code behind:
Dim strAcctFileName As String
Dim fs, f, ts, S, a
Const ForReading = 1, ForWriting = 2
Const TristateUseDefault = 1, TristateTrue = -1, TristateFalse = 0
strAcctFileName = "Customer.txt"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile("R:\path\" & strAcctFileName)
Set ts = f.OpenAsTextStream(ForWriting, TristateUseDefault)
ts.Close
Takes too long, is there another was?
Thanks Jaggar
Code used - when the User clicks on a button in Access the code behind:
Dim strAcctFileName As String
Dim fs, f, ts, S, a
Const ForReading = 1, ForWriting = 2
Const TristateUseDefault = 1, TristateTrue = -1, TristateFalse = 0
strAcctFileName = "Customer.txt"
Set fs = CreateObject("Scripting.FileSystemObject")
Set f = fs.GetFile("R:\path\" & strAcctFileName)
Set ts = f.OpenAsTextStream(ForWriting, TristateUseDefault)
ts.Close
Takes too long, is there another was?
Thanks Jaggar