vb Select * from tableA?How to select record from 1000 to 2500 
Author Message
 vb Select * from tableA?How to select record from 1000 to 2500

Select the Top 15000, then Delete the top 10000 from it.

That will leave you with the top 10001 to 15000.

--
HTH,

Steve Clark, MVP
FMS, Inc.
---
See the new Access SpellChecker!
www.fmsinc.com/products/speller
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Quote:

> I am trying to use VB program a query
> select * from tableA where remark is not null,
> how do I select the (not null remark) record from 10,000 to 15,000 .

> like I can select TOP 10000 * from tableA

> anybody can help please post a message here for other reference and also


Quote:

> thank you



Mon, 03 May 2004 22:23:01 GMT  
 vb Select * from tableA?How to select record from 1000 to 2500
I would try one of the following.

One way I can think of is to select the top 15,000 in query a

Then use query A as source for query b and reverse the sort critieria and select
the top 5000.

Might be pretty slow.

Another way MIGHT be to use a subquery.  UNTESTED SQL - I have no idea if this
will actually work.

SELECT Top 5000 FieldOne
FROM TABLE A
WHERE TableA.FieldOne in
(SELECT Top 15000 Z.FieldOne From TableA as Z ORDER By Z.FieldOne Asc)
ORDER BY TableA.FieldOne Desc

Quote:

> Select the Top 15000, then Delete the top 10000 from it.

> That will leave you with the top 10001 to 15000.

> --
> HTH,

> Steve Clark, MVP
> FMS, Inc.
> ---
> See the new Access SpellChecker!
> www.fmsinc.com/products/speller
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-


> > I am trying to use VB program a query
> > select * from tableA where remark is not null,
> > how do I select the (not null remark) record from 10,000 to 15,000 .

> > like I can select TOP 10000 * from tableA

> > anybody can help please post a message here for other reference and also

> > thank you



Tue, 04 May 2004 00:25:59 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. vb Select * from tableA?How to select record from 1000 to 2500

2. vb Select * from tableA?How to select record from 1000 to 2500

3. vb Select * from tableA?How to select record from 1000 to 2500

4. vb Select * from tableA?How to select record from 1000 to 2500

5. vb Select * from tableA?How to select record from 1000 to 2500

6. VB select distinct Fax, Co_nam from tableA doesn't

7. VB select distinct Fax, Co_nam from tableA doesn't

8. VB select distinct Fax, Co_nam from tableA doesn't

9. VB select distinct Fax, Co_nam from tableA doesn't

10. VB select distinct Fax, Co_nam from tableA doesn't

11. HELP: Selecting 1000's of rows in SSDBGrid

12. Fastest way to delete 2500 records?

 

 
Powered by phpBB® Forum Software