Results 1 to 4 of 4

Thread: MoveNext??

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    8

    Unhappy

    I've been trying to create code that allows me to move through the selected records using the ADO tool
    (Other than using the buttons provided with the ADO tool)
    Any idea - please let us know
    Thanks

  2. #2
    Lively Member
    Join Date
    Aug 2000
    Location
    Trondheim, Norway
    Posts
    65

    Lightbulb

    Is this what you mean?

    Data1.RecordSet.MoveNext

    D

  3. #3

    Thread Starter
    New Member
    Join Date
    Oct 2000
    Posts
    8

    Talking Thanks

    yep - thats exactly what I was wanting - Thanks heaps

  4. #4
    Guest
    Hi there, this code should do to help navigation.


    Next Record :

    if not recordset.recordcount = 0 then
    recordset.movenext
    if recordset.eof = true then
    recordset.movelast
    end if
    end if

    Previous Record :

    if not recordset.recordcount = 0 then
    recordset.moveprevious
    if recordset.bof = true then
    recordset.movefirst
    end if
    end if

    Last Record :

    if not recordset.recordcount = 0 then
    recordset.movelast
    end if

    First Record :

    if not recordset.recordcount = 0 then
    recordset.movefirst
    end if


    This should do for navigating through any recordset supporting navigation. if you still have problems, you can be more specific about them and feel free to mail me. all the best...vijay







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