How to Get Rid of Quotes When Writing to TXT File

llyal

Registered User.
Local time
Today, 20:28
Joined
Feb 1, 2000
Messages
72
How to Get Rid of Quotes When Writing to TXT File

I am making a routine in Access that will automatically generate a custom HTML page. I find that writing strings to the TXT file generate quotes (as if i am creating a delimited file). How do i manipulate things so that only what i send to the file is printed (without the quotes)?

Here is my code:

Private Sub cmdWrite_Click()

Dim strString As String
strString = "TEST"

Open "f:\test.txt" For Output As #1
Write #1, strString
Close #1

End Sub


If i write TEST and then open TXT file, i get "TEST" (with the quotes). This is no good.

Thank you!

Llyal
 
If you use Print rather than Write you won't get the quotes.

Denny
 

Users who are viewing this thread

Back
Top Bottom