Hi,i have a problem writing to text file.
Say for example i have a text field A with values like
11,xxxx
yyyy
zzzz
the above value is nothing but address. i need to export this to text file.
i used the code
StdFields1 = Chr(34) &stringVar &Chr(34)
Print #Filenum, StdFields1
where stringVar contains the field value.
to preserve the values like comma and new line inside field values i used quotes before and after field values.
Now the output in text file looks like
"11,xxxx
yyyy
zzzz"
here the problem is, when it sees the newline in the field, it gets to new line but the value is enclosed in quotes as shown above.
i need to export data to text file in comma delinited value format like
“w” , “eeee” , “11,xxxx yyyy zzzz”
This is a problem for me because, if i import data from text file like this
w" , “eeee” , "11,xxxx
yyyy
zzzz"
into excel, even if i use comma as delimiter, the value yyyy appaers in newline because it appered in newline in text file.
On the whole, If i import the data from the text file to excel, My output in EXCEL should be like
w eeee 11,xxxx yyyy zzzz"
ie. the three values in three cells . the value w in one cell and eeee should be in second cell and “11,xxxx yyyy zzzz” should be in one cell.
Can anyone help me?Thanks in advance