…. into text file have the header of fileds, is possible to NO import header of each field and import from the second line of text file?
How to modify this string:
cnDB.Execute “INSERT INTO [StarData] ” _
& “SELECT * FROM [Text;Database=” & strTextFolder & “].[” _
& StarsTextFile & “]”, _
lngImported, _
adCmdText Or adExecuteNoRecords
i have see in the forum existsis the option YES/NO but have difficult to arrange the code…
i use this ini file but the header of fileds are imported into first line of table????
Print #intFile, “[” & StarsTextFile & “]”
Print #intFile, “MaxScanRows=1”
Print #intFile, “Format=Delimited(;)”
Print #intFile, “ColNameHeader=False”
Print #intFile, “Col1=””Field1″” Text”
Print #intFile, “Col2=””Field2″” Text”
Print #intFile, “Col3=””Field3″” Text”
Print #intFile, “Col4=””Field4″” Text”
Print #intFile, “Col5=””Field5″” Text”
Print #intFile, “Col6=””Field6″” Text”
Print #intFile, “Col7=””Field7″” Text”