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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

--Tally records--- in one line 1

Status
Not open for further replies.

lmcate2

IS-IT--Management
Aug 28, 2001
49
US
i am new to reports...
I have a database report that I will like to show the following:

1 - 14 A RECORDS
15 - 27 B RECORDS
28 - 40 C RECORDS
41 - 50 D RECORDS


Thanks,

SM
 
You will have to provide more info.
What are your input records?
What does your example mean?
 
What I mean is that records is a fieldname, The value in this field is "Raddison","Hilton","Best Western","La Quinta"
so I want to be able to find the records sequence for all the Radisson's, Hilton.

SM
 
I agree with lupins46. Please provide some sample records with field names and then how you would like these sample records to appear on your report.

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Thank you lupins46 and Duane. Here is the report sample layout. The record sequence is what I have trouble in getting in the same line starting with number 1 to 15..

RECORD SEQUENCE HOTEL TOTAL PROPERTIES
1 -15 HILTON 15
16-20 RAMADA 4
21-50 SHERATON 29
51-55 HOLIDAY INN 5
56-100 BEST WESTERN 44
ETC......
========
Total 97
 
Is this your data or your desired display? If it is one or the other, we don't have a clue about the missing information. Is it too hard to respond with the answer to a simple question?

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Thank you again guys, here is my fields

Propertyid n (autonumber)
HotelChainame c 50

So I want to tally by HotelChainame and count them. My question is to get the propertyid is starting and ending for each of the Hotelchainame starting - ending (1-30).

Thanks,

SM
 
Can you use something like:
SELECT Min(PropertyID) & "-" & Max(PropertyID) as RecordSequence, HotelChainame, Count(HotelChainame) as TotalProperties
FROM tblYourTable
GROUP BY HotelChainName;

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Duane:

Thank you for your assistance this is what I need it .

SM
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top