• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 17. Manipulating Data with ADO > Adding Data Using a Recordset

Adding Data Using a Recordset

At some time, you might need to add new data using a Recordset object. The process is a little more involved than just viewing or finding data. Adding a new record requires three actions:

  • First, call ADO’s AddNew method to create a new row in the Recordset.

  • Next, supply the value for each required field.

  • Finally, call ADO’s Update method to save the new row to the data source. If you forget to call the Update method, the new data is discarded without warning.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint