Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access ASP
| Search | Today's Posts | Mark Forums Read
Access ASP Using ASP with Microsoft Access databases. For Access questions not specific to ASP, please use the Access forum. For more ASP forums, please see the ASP forum category.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access ASP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 10th, 2007, 06:18 PM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default How not to retrieve duplicate entries?

Hi all, here's my problem:

I have a very simple table that has PK, Title, and Category fields. I'll have about 100 records in this table, and each record will have one of 5 Categories, so obviously there'll be some duplication of the Categories themselves. How do I tell asp to output a page that only displays one instance of each different Category?

I'm really hoping that this makes sense to someone!

TIA

I drink, therefore I am.
  #2 (permalink)  
Old January 12th, 2007, 12:36 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Melbourne, Vic, Australia.
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Setting your RecordSource to something like
Code:
SELECT [Category] FROM YourTable GROUP BY [Category]
should do the trick, assuming what you're after is just a list of the categories.

I am a loud man with a very large hat. This means I am in charge
  #3 (permalink)  
Old January 12th, 2007, 08:22 AM
Registered User
 
Join Date: Jul 2005
Location: , , .
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Steven, that's exactly what I wanted to achieve.

My next question is, how do I now hyperlink each Category, so that it will list all the records that belong to it in a new page? I thought I had a method, but it doesn't work :-). Also, I've no idea what the correct names are for any of these procedures - sorry.

TIA.



I drink, therefore I am.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing duplicate entries avantikad XSLT 2 January 2nd, 2008 12:29 PM
Validate duplicate Entries using javascript sams ASP.NET 1.0 and 1.1 Professional 3 July 2nd, 2007 03:31 AM
Random Duplicate Entries SaraJaneQ Classic ASP Databases 6 July 16th, 2006 10:47 PM
How can I check for duplicate entries in XML gargkapil777 XSLT 2 December 22nd, 2005 01:00 PM
Delete duplicate entries from table expertcalling SQL Server 2000 2 January 2nd, 2005 11:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.