Reply
grouping records
Old 08-19-2004, 07:27 AM grouping records
tonya's Avatar
Ultra Talker

Posts: 423
Location: world traveller based in UK
I have a huge list of records for thsi client that they have grouped into categories with a category field. They want to view the list on screen but grouped by category. How do i get my code to loop through each category creating a recordset for each category ? then moving on ???
__________________
Tonya

:: my personal site :: Marine Biology Site
tonya is offline
Reply With Quote
View Public Profile Visit tonya's homepage!
 
When You Register, These Ads Go Away!
Old 08-23-2004, 06:18 PM
afonseca's Avatar
Average Talker

Posts: 17
Can you elaborate on this?
afonseca is offline
Reply With Quote
View Public Profile
 
Old 08-26-2004, 12:10 PM
melfan's Avatar
Skilled Talker

Posts: 90
You can create a SQL statement with GROUP BY command.

SELECT * FROM Tbl WHERE Condition GROUP BY Class

Then loop thru the recordset to display the records
melfan is offline
Reply With Quote
View Public Profile Visit melfan's homepage!
 
Reply     « Reply to grouping records
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13162 seconds with 12 queries