CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Guest

    Import CSV Text files into DAO Recordsetiel

    Hi all,

    does anyone know where I can get a routine to open a std comma separated text file and import it into a DAORecordset,

    thanks in advance,

    Daniel


  2. #2
    Join Date
    May 1999
    Posts
    667

    Re: Import CSV Text files into DAO Recordsetiel

    We use dao itself to open and read csv files, we put a flag in the record set class to say weather or not to opena mdb file or a csv file, we then define an operator= for the record set. We then create 2 instances of the record set 1 for mdb 1 for csv and then loop thru the csv records adding them to the mdb record. I don't have the code for this at home, but if you would like email me and I will send you a sample recordset and code for this.

    HTH,
    Chris


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

Featured