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

    ADO Recordset issue

    Hi,

    I want to merge two ADO recordsets with the same structure (from the same table). First I thought of adding new records and filling them with values of the other recordset. This is not good enough, because I have to keep the status (property), and if you add new records, it always gets adRecNew as value.

    Is there a way to merge recordsets with the same structure and keeping the status ?

    Thanks,
    Joris.


  2. #2
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: ADO Recordset issue

    you can use a union in your sql statement like this

    Select Product, Description from TableA
    Union
    Select Product, Description from TableB



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