CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: delete a record

  1. #1
    Join Date
    Sep 2000
    Posts
    200

    delete a record

    When I try to delete a record using the following code . . .


    private Sub mnuPopDelete_Click()
    DataEnvironment1.rscmdDepartments.Delete
    End Sub




    I get the following error . . .

    "Row handle referred to a deleted row or a row marked for deletion."

    Thanks for any solutions.
    John


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: delete a record

    Define the connection object and execute an SQL

    sSQL = "delete from Table where UniqueKey = YourCriteria"

    conn.Execute sSQL

    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Sep 2000
    Posts
    200

    Re: delete a record

    Thanks for your help. But could you explain why
    DataEnvironment1.rscmdDepartments.Delete
    gives the error? Thanks


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