Results 1 to 4 of 4

Thread: Moving Next/previous

  1. #1

    Thread Starter
    Hyperactive Member parkes's Avatar
    Join Date
    Jan 1999
    Location
    Unitied Kingdom
    Posts
    303
    Can someone tell me how to move backwards and forwards through a record set. Also to tell my which record I am on 3 of 1500, etc
    Thanks in advance for any help provided.

    VB 6 Enterprise Edition SP4
    ADO, SQL 7/2000, ASP and some JavaScript


    >> Life goes on, but for how long? <<
    If you can smile when things go wrong, you have someone in mind to blame

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    Make sure that your recordset is not forward only and you have MoveNext, MovePrevious, MoveFirst, MoveLast, and Move n methods available to navigate through a recordset. If you must know which record you are on (really you only need to know if it's the first or last to handle EOF and BOF) you can use the AbsolutePosition property which returns the record's ordinal position in the recordset.

    For more info check this out on MSDN Online

    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    [email protected]
    [email protected]


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

  3. #3
    Fanatic Member
    Join Date
    Feb 2002
    Location
    Hampton Beach
    Posts
    513
    Did you ever get the answer to this question? I am trying to do be able to navigate through the recordset: see thread:

    http://www.vbforums.com/showthread.p...hreadid=199941

  4. #4
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    hi

    Okay guess this would help....
    Attached Files Attached Files

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