CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    47

    VB - Database Updating

    When I set a record in my database equal to some value why does it reflect that value whether or not I "update" the recordset. Can someone please shed some light as to what an update actually does???

    Thanks in advance.


  2. #2

    Re: VB - Database Updating

    Possible Causes

    Are u using a Data Binding (using Data Control). If yes once u move ur record pointer after any changes ur changes are automatically updated,

    If u dont use Data binding pl be clear on ur question

    please get back to [email protected] or [email protected] for further clarifications

    The Ultimate Solution Providers

    Authors

    Sriman & Jayaraman

    Email : [email protected]
    [email protected]

    Hand Phone : +(6) 016 2237147

  3. #3
    Join Date
    Aug 1999
    Posts
    3

    Re: VB - Database Updating

    if you are not bound to the data control use this method of "edit" and "update" to change data in a field in the database:
    Data1.Recordset.Edit
    Data1.Recordset.Fields("FieldName") = ChangedValue
    Data1.Recordset.Update



  4. #4
    Join Date
    May 1999
    Location
    USA
    Posts
    23

    Re: VB - Database Updating

    You might not be using BeginTrans and CommitTrans in which case the program by default commits all ur data 2 the database.
    If this does not solve ur problem, then u can send me a question at [email protected] and if u want u can send the sample code u r using.

    Ansu


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

Featured