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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Combo Box Question



 
 
Thread Tools Display Modes
  #1  
Old October 22nd, 2009, 07:29 AM posted to microsoft.public.access.forms
Ron A.
external usenet poster
 
Posts: 50
Default Combo Box Question

I have a form with combo boxes that link to a query that creates a report
based on the selections in the combo boxes. The issue I have is that I do not
want the list supplied by the combo box to show duplicates. If I have a
vehicle I buy parts for, I put the registration number of that vehicle in the
purchase table and over a period of time, there may be several entries with
the same registration number. My combo box show all the registration
numbers...so if it is in there 10 times then I see it ten times in the drop
down list for the combo box. I would like to only see it once.
--

Ron
  #2  
Old October 22nd, 2009, 12:40 PM posted to microsoft.public.access.forms
Mr. B[_4_]
external usenet poster
 
Posts: 171
Default Combo Box Question

Ron A,

Change the "Unique Values" property of your query that is providing the list
to your combo box to "Yes".

-----
HTH
Mr. B
http://www.askdoctoraccess.com/
Doctor Access Downloads Page:
http://www.askdoctoraccess.com/DownloadPage.htm


"Ron A." wrote:

I have a form with combo boxes that link to a query that creates a report
based on the selections in the combo boxes. The issue I have is that I do not
want the list supplied by the combo box to show duplicates. If I have a
vehicle I buy parts for, I put the registration number of that vehicle in the
purchase table and over a period of time, there may be several entries with
the same registration number. My combo box show all the registration
numbers...so if it is in there 10 times then I see it ten times in the drop
down list for the combo box. I would like to only see it once.
--

Ron

  #3  
Old October 22nd, 2009, 05:48 PM posted to microsoft.public.access.forms
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Combo Box Question

On Wed, 21 Oct 2009 23:29:01 -0700, Ron A.
wrote:

I have a form with combo boxes that link to a query that creates a report
based on the selections in the combo boxes. The issue I have is that I do not
want the list supplied by the combo box to show duplicates. If I have a
vehicle I buy parts for, I put the registration number of that vehicle in the
purchase table and over a period of time, there may be several entries with
the same registration number. My combo box show all the registration
numbers...so if it is in there 10 times then I see it ten times in the drop
down list for the combo box. I would like to only see it once.


What is the Combo Box's RowSource? If it's your table, then it needs to be
changed to a Query that either has the Unique Values property set (as Mr. B
suggests), or to a Totals query; or perhaps to a query selecting from the
Registrations table which you hopefully also have, containing one record per
vehicle.
--

John W. Vinson [MVP]
 




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 01:09 PM.


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