Hi
I need to be able to write a forms recordset to a CSV text file. I belive I have to open a file and then loop around the fields, writing each fieldname.
The 1st bit of code (contains the fieldnames themselves) looks like this
where arrFieldList is an array of teh fieldnames that I want to export.
Anyway, the problem is that Write #1 always adds a new line as does Print #1. How do I prevent this, so that all my fieldnames are on the same line?
Thanks
I need to be able to write a forms recordset to a CSV text file. I belive I have to open a file and then loop around the fields, writing each fieldname.
The 1st bit of code (contains the fieldnames themselves) looks like this
Code:
For i = 1 To UBound(arrFieldList)
Write #1, arrFieldList(i) & ","
Next i
where arrFieldList is an array of teh fieldnames that I want to export.
Anyway, the problem is that Write #1 always adds a new line as does Print #1. How do I prevent this, so that all my fieldnames are on the same line?
Thanks