need seq_# to increase by 1 every 200 records

blioux

Registered User.
Local time
Yesterday, 19:13
Joined
Sep 10, 2002
Messages
14
anyone know how to make a sequence number that increases by 1 every 200 records. I'm stuck and it seems like such a simple thing.

thanx

Jason
 
Jason,

You can open a recordset with all records with the same
sequence number, do a .MoveFirst, MoveLast and then
use rst.RecordCount.

Or look up the DCount function.

Why are these bundled in groups of 200?

Wayne
 
If your codeing it.......

Open your recordset

While NOT rs.EOF

n = n + 1

If n = 200 Then
n1 = n1 +1
n = 0
End If

rs.MoveNext

Wend

(but give your variables meaningful names)
 
Why are these bundled in groups of 200?

Probably doing some sort of search function showing next 200 results or something.
 

Users who are viewing this thread

Back
Top Bottom