borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Drop down menu on Flexgrid)Next Topic (Controlling ShortCutMenuBars) New Topic New Poll Post Reply
AndreaVB Forum : Database : Exporting ADODC recordset to .csv file
Poster Message
catchthepidgeon
Level: Guest


icon Exporting ADODC recordset to .csv file

I am writing an application in VB6 that sits on top of Access 97.  I have a recordset that I would like to export to a .txt or .csv file at the push of a button on a VB6 form.  Easy to do in Access but how do you do it in VB?

13-10-2002 at 08:09 PM
| Quote Reply
stickleprojects
Level: Moderator


Registered: 09-09-2002
Posts: 891
icon Re: Exporting ADODC recordset to .csv file

Hi,
Recordset.Save will save to a ADO.Stream object, or Recordset.GetRows or Recordset.GetString (ADO2.6) will help.
Kieron


____________________________
Build it better, faster, quicker, easier.. then fix it (non-offical MS mission statement)

13-10-2002 at 11:19 PM
View Profile Send Email to User Show All Posts | Quote Reply
catchthepidgeon
Level: Guest

icon Re: Exporting ADODC recordset to .csv file

Thanks for this but i cannot fulfill my objective.  I have used the recordset.save method but I want tio use this fil for importing to another application.  The csv file created is not formatted in any way.  Do i have to format it in VB (i.e. split all the fileds with commas etc) or is there a simpler way?

14-10-2002 at 11:27 AM
| Quote Reply
AndreaVB Forum : Database : Exporting ADODC recordset to .csv file
Previous Topic (Drop down menu on Flexgrid)Next Topic (Controlling ShortCutMenuBars) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder