G37Sam
Registered User.
- Local time
- Today, 19:35
- Joined
- Apr 23, 2008
- Messages
- 454
What query or SQL statement would I have to use as a multiple form's recordsource to have it display record numbers 100 to 200 for example?
A solution I thought off
Adding an extra field to the table, and doing this before opening the form
then setting the forms recordsource to
Is there a quicker way to do this? My backend is sitting on a server online, and updating all 8712639 records everytime the form is opened might not be the smartest or quickest approach
A solution I thought off
Adding an extra field to the table, and doing this before opening the form
Code:
Dim tb as DAO.recordset, counter as int
set tb = currentdb.openrecordset("myTable")
counter = 0
do while tb.eof = false
tb.edit
counter = counter + 1
tb!myRecordNumber = counter
tb.update
tb.movenext
loop
tb.close
then setting the forms recordsource to
Code:
select * from myTable where myRecordNumber between 100 and 200
Is there a quicker way to do this? My backend is sitting on a server online, and updating all 8712639 records everytime the form is opened might not be the smartest or quickest approach