Results 1 to 4 of 4

Thread: Simply DB Questions

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    I would Like to know how to do a few things in DB's.

    How do you tell the Data contoll to make a new record?

    How could I tell the data contoll to save the changed data of the fields with a command button?

    Thankyou!!


  2. #2
    Guest

    Post

    data1.recordset.addnew 'to make a new record

    data1.recordset.movenext 'i think this should save the record

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    184

    Post

    Thankyou alot, But what if there is no next record??

  4. #4
    Guru Clunietp's Avatar
    Join Date
    Oct 1999
    Location
    USA
    Posts
    1,844

    Post

    If there is no next record, the EOF property will be TRUE. You can control this by setting the BOFAction, EOFAction of the data control.

    When you want to update a recordset, you should issue the data1.Recordset.Update command before you movenext, but the fields are updated automatically anyways....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width