Check for duplicate entry

This is a discussion on "Check for duplicate entry" within the JavaScript Forum section. This forum, and the thread "Check for duplicate entry are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 21st, 2003, 08:22
Junior Member
Join Date: Aug 2003
Posts: 14
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to kinjiro
Check for duplicate entry

I have a page that pulls a column from an access DB.
This column could appear on my webpage any number of times dependant on how many entries there are in the DB.

What I need to do in javascript is loop through each field checking for duplicate entries.

The name of the field is in the format "order_" & IDfromDB

I can do everything apart from the detecting of the duplicate entry. Unfortunately the IDfromDB will most likely NOT be sequential, so I need to code for that.

Any ideas?

  #2 (permalink)  
Old Nov 21st, 2003, 10:09
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 158
Thanks: 0
Thanked 0 Times in 0 Posts
Are you removing the duplicate entries?

If so (not sure if access can do this, but possible with SQL) why not alter your query to the table with:

SELECT DISTINCT ...

HTH
u2o
  #3 (permalink)  
Old Nov 21st, 2003, 18:26
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Are you using Javascript for ASP? If not I'm not sure why you'd be doing this on the client-side verses the server-side as that's the correct place to do filtering like this (either in the SELECT like u2 said or in writing the recordset to the page).
Closed Thread

Tags
check, duplicate, entry

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicate content dab42pat Search Engine Optimization (SEO) 25 Aug 3rd, 2007 16:09
Duplicate content ScottR Search Engine Optimization (SEO) 6 Jul 27th, 2007 13:36
Masking a duplicate MC eabigelow Flash & Multimedia Forum 3 Oct 22nd, 2006 03:23
seeking cause for err: "Duplicate entry '' for key 2" jswebdev PHP Forum 2 Nov 28th, 2005 00:04


All times are GMT. The time now is 22:37.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43