query options

lhather

New Member
Joined
Feb 4, 2003
Messages
45
I hope this is a very simple query question. I've searched the Access forum but didn't find exactly what I'm looking for.

I have a query that pull data from 3 tables (two are linked). This query generall produces about 50,000 records. I need to then export the query results into spreadsheet - ultimately ending up in Lotus Format. The problem is that the max number of records for Lotus format is 8,000.

Can I specify in say multiple queries the first 8,000 results and then result 8,001-16,000, etc. I hope this is clear enough for all to understand.

Thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Not working - need clarification

I think I'm doing it wrong. Should I be selecting the Totals option in a new column in my query or an existing column (field) The totals option runs across all the fields.

The best I could come up with is and additional field in my results that says count of (field of choice) and it has 1's going all they way down.

If I set the criteria @ <8000 - it gives me a datatype error.
 
Upvote 0
Yes,

I apologize for pointing you to a post that I did not test. I will get back as soon as I think of something. I want to number the records in the query, and then use criteria, it should work then.

-C
 
Upvote 0
top

Hi Ihather,

I hope I'm not too late.

If you use the 'top' condition in SQL, you should be able to do what you want.

SELECT top 8000 Qry1.Field1, Qry1.Field2
FROM Qry1;

hats off to Thoey for this one

You can make this a 'make-table' query, or whatever you need to put the dat where you want.

HTH,
 
Upvote 0

Forum statistics

Threads
1,221,517
Messages
6,160,264
Members
451,635
Latest member
nithchun

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top