Hi,
You need to Clear NewSQL1 for each record...
Try This :
vb Code:
Dim FN As Integer FN = FreeFile Open "C:\Temp1.txt" For Output As FN Do While Not RST.EOF = True NewSQL1 = "" For J = 0 To RST.Fields.Count - 1 NEWSQL1 = NEWSQL1 & ";" & Trim(RST.Fields(J).Value) Next J Print #FN, NEWSQL1 RST.MoveNext Loop Close FN
Regards
Veena




Reply With Quote