Results 1 to 2 of 2

Thread: Schema.ini

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Oxfordhsire, UK
    Posts
    13

    Schema.ini

    I am trying to parse a csv file using the microsoft text driver and a schema.ini file.

    I can read the csv into the program, but it does not seem to be taking into account my schema.ini file. In the schema.ini I am setting the ColNameHeader=False yet when I read the records in the first record becomes the column names and the second record actually appears as the first record in the recordset.

    objConCSV.Open "Driver={Microsoft Text Driver (*.txt; *.csv)};" & _
    "DefaultDir c:\data\;" & _
    "Extensions=csv;"

    rsCSVFile.Open "Select * From datafile.csv", objConCSV, , , adCmdText

    Any help would be great, this is really starting to annoy me now.

    Steve.

  2. #2

    Thread Starter
    New Member
    Join Date
    Oct 2002
    Location
    Oxfordhsire, UK
    Posts
    13
    Problem sorted, ok all done now, the problem was a rogue space, had creaped into the file name heading in the schema.ini file.

    Now all works, sound as a pound.

    Steve.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width