From: Erinayn on
I have a simple scenario...

We have a list of 20 items and I'd like people to identify the top 10 to
them. I created a dropdown but was wondering if I can make it so that when
they used one of the rankings if it can be removed from the choices.
From: PieterLinden via AccessMonster.com on
Erinayn wrote:
>I have a simple scenario...
>
>We have a list of 20 items and I'd like people to identify the top 10 to
>them. I created a dropdown but was wondering if I can make it so that when
>they used one of the rankings if it can be removed from the choices.

Say you have two tables
tblItems(ItemName)

and
tblChoices(PersonID, ItemName, Rank)

You need to set the rowsource of your combobox to

SELECT tblItems.ItemName
FROM tblItems LEFT JOIN tblChoices ON tblItems.ItemName = tblChoices.ItemName
WHERE tblChoices.PersonID = Me.cboPersonID
AND tblChoices.ItemName IS NULL
ORDER BY tblItems.ItemName

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/201005/1

From: PieterLinden via AccessMonster.com on
Erinayn wrote:
>I have a simple scenario...
>
>We have a list of 20 items and I'd like people to identify the top 10 to
>them. I created a dropdown but was wondering if I can make it so that when
>they used one of the rankings if it can be removed from the choices.

Say you have two tables
tblItems(ItemName)

and
tblChoices(PersonID, ItemName, Rank)

You need to set the rowsource of your combobox to

SELECT tblItems.ItemName
FROM tblItems LEFT JOIN tblChoices ON tblItems.ItemName = tblChoices.ItemName
WHERE tblChoices.PersonID = Me.cboPersonID
AND tblChoices.ItemName IS NULL
ORDER BY tblItems.ItemName

--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/201005/1