I am using
Code:
Option Compare Database
Private Sub Command0_Click()
Dim rst As DAO.Recordset
Set rst = CurrentDb.OpenRecordset("Table1")
Dim fs, TextFile
Set fs = CreateObject("Scripting.FileSystemObject")
Set WriteFile = fs.CreateTextFile("C:\test\test.text", True)
Do Until rst.EOF = True
WriteFile.writeline "Image Name"
WriteFile.writeline "Feild2" & Chr(9) & "Feild3" & Chr(9) & "Feild4" & Chr(9) & "Feild5"
WriteFile.writeline Chr(12)
rst.MoveNext
Loop
WriteFile.Close
End Sub
and everything works, however, I can not figure why the data in feild1, feild2, ect... is not writing over to the text file. Only the column names feild1, feild2 etc... are.
does anyone know how to send the actual data instead of the column names in the above code to a text file?
Thanks in advanced
daveofgv