Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to save recordset in a txt file and read it later?

Status
Not open for further replies.

strucnjak79

Programmer
Joined
Oct 14, 2005
Messages
37
Location
BA
well i think I find out how to save it:
Code:
qry.recordset.save('C:\filename.txt',0); //what is this number?
[code]

But I'm realy wondering how to read data from file?
 
Are you using ADO?

I found this for the second parameter (the number):

Code:
Value 	Description
0 	Saves in a Microsoft Advanced Data TableGram 
        (ADTG) format.
1 	Saves in Extensible Markup Language (XML) format
2 	The provider will persist the Recordset using 
        its own format

You'll use the .Open method and specify your filename for the Source parameter.

Regards,

Django
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top