I use this line to write into txt file:
Num = RS1.Fields.Count
Do While RS1.EOF True
Write #FileNum, RS1.Fields(0); RS1.Fields(1); RS1.Fields(2); RS1.Fields(3); RS1.Fields(4); RS1.Fields(5)
RS1.MoveNext
Loop
but i know the number of fileds is possile to loop the fileds and wririte the string?
In this case i have 36 fileds (see Num = RS1.Fields.Count) and instead to write:
Write #FileNum, RS1.Fields(0); RS1.Fields(1); RS1.Fields(2); RS1.Fields(3); RS1.Fields(4); RS1.Fields(5)…RS1.Fields(35)
loop based the number of fileds