ADO AddNew Method
Complete Recordset Object Reference
The AddNew method creates a new record for an updateable Recordset object.
After you call this method, the new record will be the current record.
Syntax
|
objRecordset.AddNew fieldlist,values
|
| Parameter |
Description |
| fieldlist |
Optional. A field name, or an array of field names, or
the numeric position of the fields in the new
record
|
| values |
Optional. A value, or an array of values for the fields in the new record |
Example
<%
rs.AddNew "ProductName","Chang"
%>
or
<%
varfields=Array("ProductName","Prize","Quantity")
varvalues=Array("Chang","19","24-12 oz bottles")
rs.AddNew varfields,varvalues
%>
|
Complete Recordset Object Reference

Whether you're new to XML or already an advanced user,
the user-friendly views and powerful entry helpers,
wizards, and debuggers in XMLSpy are designed to meet your XML
and Web development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- XBRL validator & taxonomy editor
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a free trial today!
|
|
|
|