PDA

Click to See Complete Forum and Search --> : ok, let's see if i can explain this


PJB
Mar 13th, 2001, 09:39 AM
what i need to do is select a part number from a database, and there may be more than one occurence of the part no., i have to count how many occurences and display the number of occurences and also display the part no. but i can't show duplicates, any clues?

Cander
Mar 13th, 2001, 09:48 AM
Select * from table where partnumber='whatever'

.recordcount will tell you how many

rs("partnumber") will tell you the partnumber

PJB
Mar 13th, 2001, 09:52 AM
but will that just return the unique number, there could be a few duplicates and i want to count them just not display them, and i have to return all the records, ummm

like this:
Part number 1 happens 4 times
Part number 2 happens 2 times
Part number 3 happens 3 times

sorta like that

sarath_777
Mar 13th, 2001, 02:12 PM
select [partNo], count(*) from issuetable group by [partNo]