Results 1 to 2 of 2

Thread: Updating using a Data Environement

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2000
    Location
    Ontario, Canada
    Posts
    1

    Angry

    Any one know of a way to update a recordset/database using a
    data environment? The only possible way I can see, is to
    use the ADO or DAO control. Which dosent make any sense
    sense. When I coding it, for example I type

    DataEnvironement1.rscomTest.Update

    VB auto fills in the .Update for me, which tells me there
    must be a way to do it...

    Anyone ?

    Thanks in advance

  2. #2
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Wink Suggestion...

    You need something like this:


    With DataEnvironment1.rscomTest
    !Field1 = <Value>
    !Field2 = <Value>
    .
    .
    .Update
    End With


    Assign the new values to the fields first then call the update method.

    The .Update attempts to commit the changes to the recordset and changes the edit mode to 'adEditNone'.

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