M
Mackia
I have the following piece of code which doesn't work. My objective is to
output all the lines in the recordset (sql) to a textfile. Can anyone offer
assistance. Thks.
Sub textfile()
Dim rs As Object
sql = "SELECT PSGL_Detail.*FROM PSGL_Detail;"
Set rs = CurrentDb.OpenRecordset(sql)
Open "TEXTFILE.TXT" For Output As #1
Do Until rs.EOF
Print #1, rs
rs.MoveNext
Loop
Close #1
End Sub
output all the lines in the recordset (sql) to a textfile. Can anyone offer
assistance. Thks.
Sub textfile()
Dim rs As Object
sql = "SELECT PSGL_Detail.*FROM PSGL_Detail;"
Set rs = CurrentDb.OpenRecordset(sql)
Open "TEXTFILE.TXT" For Output As #1
Do Until rs.EOF
Print #1, rs
rs.MoveNext
Loop
Close #1
End Sub