J
Judy Ward
I searched for help in the Microsoft Visual Basic window and came up with the
code below. I am hoping to adapt this simple example to meet my needs. But
one big problem is that I don't want to see quote marks around my text (Hello
World, in this example) in the file that is created.
Sub WriteToFile()
Dim myText As String
myText = "Hello World"
Open "C:\TESTFILE.txt" For Output As #1
Write #1, myText
Close #1
End Sub
I need to output many lines to a text file, static data mixed in with
variables from a recordset. There must be a way to do this.
Can anyone provide sample code or point me to an article to read?
Thank you for your help,
Judy
code below. I am hoping to adapt this simple example to meet my needs. But
one big problem is that I don't want to see quote marks around my text (Hello
World, in this example) in the file that is created.
Sub WriteToFile()
Dim myText As String
myText = "Hello World"
Open "C:\TESTFILE.txt" For Output As #1
Write #1, myText
Close #1
End Sub
I need to output many lines to a text file, static data mixed in with
variables from a recordset. There must be a way to do this.
Can anyone provide sample code or point me to an article to read?
Thank you for your help,
Judy