You can try, as the whole query (in SQL view) :
SELECT a.vendor_name, a.vendor_site_code, COUNT(*) AS siteID
FROM [Supplier_Site_Load 20071031] AS a INNER JOIN [Supplier_Site_Load
20071031] AS b
ON a.vendor_name= b.vendor_name AND
a.vendor_site_code <= b.vendor_site_code
GROUP BY a.vendor_name, a.vendor_site_code
Note that Franks Raw Goods appears twice at Charlotte! The siteID, the
generated value, will then be 2, if this is not a typo, for each of the two
identical rows.
Hoping it may help,
Vanderghast, Access MVP
>I saw the post from DB Girl about line numbering in a query which is almost
> exacly what I want to do except the solution given isn't working for me...
[quoted text clipped - 22 lines]
> Thanks,
> Bob.
byeo - 01 Nov 2007 18:37 GMT
Thank you - no that is not a typo, and your answer validated what I suspected
after reading other posts related to the topic. I guess I need a primary key
in table to make it work...
> You can try, as the whole query (in SQL view) :
>
[quoted text clipped - 38 lines]
> > Thanks,
> > Bob.