![]() |
![]() |
![]() |
|||||
![]() |
![]() |
![]() |
![]() |
![]() |
|||
| Welcome
to Tech Support Forum home to more then 136,000 problems solved. Issues
have included: Spyware, Malware, Virus Issues, Windows, Microsoft,
Linux, Networking, Security, Hardware, and Gaming Getting your
problem solved is as easy as: 1. Registering for a free account 2. Asking your question 3. Receiving an answer Registered members: * See fewer ads. * And much more..
|
| Want to know how to post a question? click here | Having problems with spyware and pop-ups? First Steps |
|
|||||||
| Microsoft Office support MS Office support forum |
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2005
Posts: 9
OS: xp
|
vb: append data to text file
I'm working with access 2000 and I've wrote a macro in visual basic to write data on a text file (visualbasic ver.6).
I'm writeing the data in appending mode, but I'd like to write the data every time in new line, unfortunately the data are placed all on the same line... How can I append the data on a new line? Hereafter the code I wrote: ... Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim f, fs Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.OpenTextFile("c:\temp\timerec.txt", ForAppending, -2) f.write ("date: " & Date) f.Close ... Hope you can help me Thanks Marco |
|
|
|
| Important Information |
|
Join the #1 Tech Support Forum Today - It's Totally Free!
TechSupportForum.com is a leading support website for your computer needs. We offer free, friendly and personalized computer support. Why pay to have your computer fixed when you can do it for free. Join TechSupportforum.com Today - Click Here |
![]() |
| Thread Tools | |
|
|