MoveNext

R

Rick

If I need to move down x number of records Is there some easy way to
to do it other than

movenext
movenext
a bunch of times or create a loop?

I was hoping for something like Movenext(6)

Thanks, Rick
 
T

Tom van Stiphout

On Tue, 1 Jun 2010 07:36:15 -0700 (PDT), Rick <[email protected]>
wrote:

You could write a procedure:
sub MoveNextMany(byval intHowMany as integer)
dim i as integer
for i = 1 to abs(intHowMany)
if intHowMany > 0 then
MoveNext
else
MovePrevious
end if
next i
end sub

Maybe better is to use the Bookmark technique. You can google or bing
for this. Keywords: recordsetclone, bookmark.

-Tom.
Microsoft Access MVP
 
K

KARL DEWEY

What about using - GoToRecord
Arguments - Record - Next
- Offset - your value of records?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Variable names for controls on forms ? 1
Do/Loop Dilemma 6
Else without IF Help 12
open form during recordset update 1
Creating reports from record set 2
Reference rst field from form 3
Recordset problems 1
DO LOOP 4

Top