ADO NextRecordset Method
Complete Recordset Object Reference
The NextRecordset method is used to clear the current Recordset object and
return the next Recordset object by looping through a series of commands. This
method returns a Recordset object.
Use this method to return the results of the next command in a compound
command statement or the
next result of a stored procedure that returns multiple results. For example, in a compound command
statement, like "SELECT * FROM table1;SELECT * FROM table2", the Execute method on a Command or the Open method on a
Recordset, will only execute the first command and return the result to a
Recordset object. To access the result of the next command in the statement, call the NextRecordset method.
If a row-returning command executes successfully but returns no records, the returned Recordset object will be open but
empty (BOF and EOF are both True). If a non–row-returning command executes successfully, the returned Recordset object will be
closed (State property is adStateClosed). When there are no more results, the
Recordset object will be set to Nothing.
Syntax
Set objRecordset2=objRecordset1.NextRecordset(ra)
Note: objRecordset1 and objRecordset2 can be the same Recordset object.
|
Parameter |
Description |
ra |
Optional. Returns the number of records affected by
the operation
|
Complete Recordset Object Reference
The Altova MissionKit is a suite of intelligent XML tools, including:
XMLSpy® – industry-leading XML editor
- Support for all XML-based technologies
- Graphical editing views, powerful debuggers, code generation, & more
MapForce® – graphical data mapping tool
- Drag-and-drop data conversion with code generation
- Support for XML, DBs, EDI, Excel® 2007, text, Web services
StyleVision® – visual stylesheet designer
- Drag-and-drop stylesheet design for XML & databases
- Output to HTML, PDF, RTF, Word 2007, & more
And more…
Try before you buy with a free fully functional 30-day trial
Download today
|
|
Get Your Diploma!
W3Schools' Online Certification Program is the perfect solution for busy
professionals who need to balance work, family, and career building.
The HTML Certificate is for developers who want to document their knowledge of HTML, XHTML, and CSS.
The JavaScript Certificate is for developers who want to document their knowledge of JavaScript and the HTML DOM.
The XML Certificate is for developers who want to document their knowledge of XML, XML DOM and XSLT.
The ASP Certificate is for developers who want to document their knowledge of ASP, SQL, and ADO.
The PHP Certificate is for developers who want to document their knowledge of PHP and SQL (MySQL).
|
|