Ok, The sql I provided it's to use in a query.
Create a new query, copy and paste the sql I provided you with and change
the name of the table and the name of the vendor id to suit the name of you
db.
Or provide me with the name of the Junction table name, and the vandor id
field name in that table and I will create the sql for you.
This Sql take the junction table, and count how many time the vandor apear
there, if he apear more then once, the query will return that vendor id, that
way you will know which vendor has more then one category.
Jessica said:
I'm sorry, but I still don't get where I'm supposed to use the sql? I'm
relatively "green" in Access.
Ofer said:
Noting if you don't want to.
Just use this sql to get all the vendors that has multiple categories
SELECT vendor, Count(vendor) AS CountOfvendor
FROM [Junction table]
GROUP BY vendor
HAVING Count(vendor)>1
' Chenge the names to suit you DB.
Jessica said:
Okay, Ofer's reply was a bit over my head. I didn't quite understand what I
was supposed to do???
:
I have a DB that has two tables:
(1) vendors
(2) categories (I have made the category field mult-select)
I have a relationship of one (vendor) to many (categories).
How do I get the two tables to "combine" and show me a vendor that may have
multiple categories?