A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Dropdown choice eliminated from selections



 
 
Thread Tools Display Modes
  #1  
Old May 28th, 2010, 07:54 PM posted to microsoft.public.access.queries
Erinayn
external usenet poster
 
Posts: 35
Default Dropdown choice eliminated from selections

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.
  #2  
Old May 28th, 2010, 10:37 PM posted to microsoft.public.access.queries
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Dropdown choice eliminated from selections

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/For...eries/201005/1

  #3  
Old May 28th, 2010, 10:39 PM posted to microsoft.public.access.queries
PieterLinden via AccessMonster.com
external usenet poster
 
Posts: 307
Default Dropdown choice eliminated from selections

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/For...eries/201005/1

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:24 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.