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

    Parent Child Transaction

    I have a parent-child relationship on the form. When I try to delete a record, I am able to delete records from both Parent and child tables and then when I move to next record in the master table and retrieve the child records for that particular master record, I am getting an error 'An object was open'. The state of the recordset is being shown as close. If I write On error resume next it works fine but ot doesn't show the child records for the master record.

    Please help me as I am stuck in this problem.


  2. #2
    Join Date
    Mar 2001
    Location
    County Durham, England
    Posts
    238

    Re: Parent Child Transaction

    How are you deleting the records from the Child Table ?, I had the same problem as I was using code to delete records from the child table and then from master.

    I resolved it my setting up the one to many relationship in access and the cascade delete related records. then I only had to delete the record from the master table and Access did the rest.


  3. #3
    Join Date
    Mar 2001
    Posts
    16

    Re: Parent Child Transaction

    I was able to delete my records but then while going to the other record the child recordset was giving a problem. Anyway the problem is already solved.


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