Report split between number range and number range (1 Viewer)

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 09:42
Joined
Nov 8, 2005
Messages
3,294
Vague heading ..
Hi Guys
OK I might be having a moment here


What i want to do..
i have a query which sorts set of records ( just plain text) into order

so
number 1 - test
number 2 balloon
number 3 - carrot
number 4 earwig
etc - the list is quite long


what I want is for the ability to have listed all of the numbers below say 10
then have some other info from another table - this would just be
name , address and some other stuff and then more list say 11-25 then more infor from the other table
accessv2010

I have dumbed it down the text would be paragraphs :confused:
 

isladogs

MVP / VIP
Local time
Today, 17:42
Joined
Jan 14, 2017
Messages
18,209
Sorry but you've 'dumbed it down' so much I can't understand it
How many fields are included? What are the field names & datatypes.
Could you show a few real records (or realistic anyway)
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 12:42
Joined
May 21, 2018
Messages
8,525
Return First Ten Records
Select Top 10 SomeID, OtherFields From SomeTable Order By SomeField

Return Next Ten Records
Select Top 10 SomeID, OtherFIelds From SomeTable Where SomeID Not IN (Select Top 10 SomeID from SomeTable Order by SomeField)

Return Next Ten Records
Select Top 10 SomeID, OtherFIelds From SomeTable Where SomeID Not IN (Select Top 20 SomeID from SomeTable Order by SomeField)
....
I think this is what you meant.
 

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 09:42
Joined
Nov 8, 2005
Messages
3,294
here goes
It is for insurance
on one policy you will have
Type weather Insurance
then insured
say Fred Smith

Then address
then dates
Then location
then interest


OK so the d/b has Fred smith , location and dates

another table will have Type and interest

i wanted to have Type (weather) with a number say between 1 and 10
and interests between 11- and 20

so every text below 10 will go above Fred Smith
and everything between 11-20 to go below

(I will have more database fields go after 20)
 

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 09:42
Joined
Nov 8, 2005
Messages
3,294
I could have lots of sub reports but there must be some way of grouping these

Another policy could be
type Prize indemnity and re-insured
both of these would go above Fred Smith
and different text beneath
 

GaryPanic

Smoke me a Kipper,Skipper
Local time
Today, 09:42
Joined
Nov 8, 2005
Messages
3,294
Return First Ten Records
Select Top 10 SomeID, OtherFields From SomeTable Order By SomeField

Return Next Ten Records
Select Top 10 SomeID, OtherFIelds From SomeTable Where SomeID Not IN (Select Top 10 SomeID from SomeTable Order by SomeField)

Return Next Ten Records
Select Top 10 SomeID, OtherFIelds From SomeTable Where SomeID Not IN (Select Top 20 SomeID from SomeTable Order by SomeField)
....
I think this is what you meant.



Yes.




kinda
select records between x and y
- insured
-Address

select records between A and B
 

jdraw

Super Moderator
Staff member
Local time
Today, 12:42
Joined
Jan 23, 2006
Messages
15,379
Gary,

Why not show us a list of records, then some subset of what it is you need from the list
--and repeat subsets as necessary. I think MajP is psychic to understand your post. He gets my "Best guess of the year prize". Of course, I'm with Colin ---confused.

What is it that relates the info in these other tables?
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 12:42
Joined
May 21, 2018
Messages
8,525
I think MajP is psychic to understand your post. He gets my "Best guess of the year prize". Of course, I'm with Colin ---confused.
After post 4 I am just confused and do not think my guess is in the ballpark.
 

Users who are viewing this thread

Top Bottom