CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2000
    Location
    Angpur, India.
    Posts
    5

    Cud not delete the record from the database

    Hi friends..

    I'm using this forum after very long time..
    but i'm really stuck now... I'm working on VB 6 as my front end and MS-ACCESS as my back end Wat is happening is..I'm opening the connection for a databse using ADO then firing some insert and Update querries on to it.. the point to be noted is that i've yet not Commited any trancastion... and i'm doing it on single opened connection... but when i'm firing the delete querry for deleting the record its giving me the error as "Could Upadate the database; Currently locked"..

    can anybody help me how can i perform the delete operation without closing the current session and without committing the transaction...

    thanikng u...

    Amish



  2. #2
    Join Date
    Jan 2000
    Location
    Saskatchewan, Canada
    Posts
    595

    Re: Cud not delete the record from the database

    Jusr issue a 'yourrecordset.cancelupdate'.

    David Paulson

  3. #3
    Join Date
    Feb 2001
    Location
    Stamford CT USA
    Posts
    2,167

    Re: Cud not delete the record from the database

    As what d.paulson reply, you're locking the table as you've done some modifications but not yet committed. Either do the .Update or .CancelUpdate before deleting.

    -Cool Bizs

    Good Luck,
    -Cool Bizs

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