aziz rasul
Active member
- Local time
- Today, 01:26
- Joined
- Jun 26, 2000
- Messages
- 1,935
I have a txt document in which I have written 2 lines with the following snippet of code behind a command button on a form:-
FileName3 = "D:\Telewest\TextFiles\OUT\Lors2UniqueStats.txt"
Open FileName3 For Output As 3
Print #3, "Records Before Import " & intStart
Print #3, "Unique Records After Export " & lngFinish
Close #3
Using another button, I need later to add new lines at the end of this file. However each time I do this, it overwrites what I had originally. How do I avoid this? In other words is there a way of positioning the insertion point on the next blank line?
I am aware that there are other ways that I can solve the problem. However the above solution would be nice.
FileName3 = "D:\Telewest\TextFiles\OUT\Lors2UniqueStats.txt"
Open FileName3 For Output As 3
Print #3, "Records Before Import " & intStart
Print #3, "Unique Records After Export " & lngFinish
Close #3
Using another button, I need later to add new lines at the end of this file. However each time I do this, it overwrites what I had originally. How do I avoid this? In other words is there a way of positioning the insertion point on the next blank line?
I am aware that there are other ways that I can solve the problem. However the above solution would be nice.