herbertioz
Registered User.
- Local time
- Today, 21:53
- Joined
- Nov 6, 2009
- Messages
- 66
I want to write a line to a textfile every time the form loads.
The problem is that it only writes the new line and not stores the old ones.
I have tried OpenTextFile but i am getting invalid argument.
Some suggestions from you guys?
Code:
Private Sub Form_Load()
Dim fs, textfile
Set fs = CreateObject("Scripting.FileSystemObject")
Set textfile = fs.CreateTextFile("c:\test\test.txt", True)
textfile.WriteLine ("The program started: " & Now() & vbCrLf)
End Sub
The problem is that it only writes the new line and not stores the old ones.
I have tried OpenTextFile but i am getting invalid argument.
Some suggestions from you guys?