Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

extract by record number?

Status
Not open for further replies.

wjl11

IS-IT--Management
Jun 20, 2002
34
US
Hello,
I would like to extract records from an mdb by record number. IE: record#s 80000-82000.
Whats the easiest way to do this?
Thanks,
Will
 
select * from table
where id between '80000' and '82000'

or

Select * from table
where id between [Enter Begin Id] and [Enter End Id]

Dodge20
 
Thanks Dodge,
There is no ID# (key) on this table, so I need to use the actual record numbers. Any idea how I do that?
Will
 
I don't know of a way. What I would do, is add an autonumber field that numbers each of the records. Then you can run the above query using your new column, in place of id.

Dodge20
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top