ADO Tambahkan Metode Baru
Referensi Objek Recordset Lengkap
Metode AddNew membuat catatan baru untuk objek Recordset yang dapat diperbarui.
Setelah Anda memanggil metode ini, catatan baru akan menjadi catatan saat ini.
Sintaksis
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 |
Contoh
<%
rs.AddNew "ProductName","Chang"
%>
or
<%
varfields=Array("ProductName","Prize","Quantity")
varvalues=Array("Chang","19","24-12 oz bottles")
rs.AddNew varfields,varvalues
%>
Referensi Objek Recordset Lengkap