CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2001
    Posts
    16

    Deleting a record from Parent table

    I have a parent and a child table. When I am trying to delete the record from the parent table it is giving me an error 'Errors Occured'. The error number is -2147217887. I am using a third-party component VSFlexgrid for locating a record to be deleted. The same thing is working for other tables.


  2. #2
    Join Date
    Apr 2001
    Posts
    4

    Re: Deleting a record from Parent table

    U will need to first delete the concerned records from the clild table before removing the record from the Parent table. I believe that the primary key is in the Parent table and its foreign key in the clild .... so u will first need to delete record from the child and then the parent...

    amulay


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