Dropdown choice eliminated from selections

E

Erinayn

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.
 
P

PieterLinden via AccessMonster.com

Erinayn said:
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
 
P

PieterLinden via AccessMonster.com

Erinayn said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top