If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
In VB6 SP6 using an ADO Data Control I want to save an ADODC.Recordset into a new database file (or any file!). The MSDN Help file states that I should use "ADODC1.Recordset.Save <path>".
This does not work as :
+ the resulting file seems to be unreadable by any application - even as a simple text file although I can see the data in the text file.
+ if I save to an existing MDB database I get an error message saying that the file already exists and if I use On Error Resume Next, no records are appended to the database.
You can save the recordset in two formats. Either the proprietary Advanced Data Tablegram format (which is the default and unreadable) or in XML which more universal. Here is the syntax for both:
Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!
Or try our Ask An Expert service to answer any of your questions!
Thanks, but I don't want ADTG or XML format, I need a simple MDB file!
Surely there must be a way to open an ADO recordset from an Access Database and save it to a new or existing, blank Access database! Seems a basic VB programming task to me . . .
Download for FREE the ADO/DAO Data Controls that makes life EASIER developing database applications in: VB, FoxPro, Access, VC++, .NET etc... Navigate, Add New, Delete, Update, Search, Undo and Save your changes. Supports Disconnected Recordsets and Transactions!
Or try our Ask An Expert service to answer any of your questions!