Adodc Link

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Wernerh
    New Member
    • Jul 2007
    • 104

    Adodc Link

    Hi, please can anyone tell me if there is a way to navigate two adodc controls. I have a from with adodc1 and adodc2 - each linked to their own mdb table working perfectly. Is there any way by code that if you use the adodc1 control to navigate to the next record it will mirror this action in adodc2.

    Would appreciate any insight, not even sure it can be done.

    Regards
    Werner
  • Wernerh
    New Member
    • Jul 2007
    • 104

    #2
    Just realised how easy it is, used a command button to move records back and forth

    Comment

    • EYE4U
      Banned
      New Member
      • Oct 2008
      • 76

      #3
      Use following codes to navigate both controls :
      For Next Record
      Code:
      Adodc1.Recordset.MoveNext
      Adodc2.Recordset.MoveNext
      For Previous Record
      Code:
      Adodc1.Recordset.MovePrevious
      Adodc2.Recordset.MovePrevious
      For First Record
      Code:
      Adodc1.Recordset.MoveFirst
      Adodc2.Recordset.MoveFirst
      and so on..

      Regards
      ARUZ

      Comment

      Working...