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

How to stop the combo box from repeating values



 
 
Thread Tools Display Modes
  #1  
Old September 21st, 2007, 03:14 AM posted to microsoft.public.access.tablesdbdesign
AccessComp
external usenet poster
 
Posts: 3
Default How to stop the combo box from repeating values

I am using Access 2007 and I'm trying to get a combo box to display the
artists I have in my database but every time I go to another record or close
out the database and open it up again, it automatically duplicates one or
two names into two additional lines. How can I make it display only the names
I put in it? This usually happens when I try to use a query. However I don't
know of any other way to get the combo box to display the names. I'm also
using the limit to list and not in list properties.
Can someone help me on this?. Thanks for your help in advance.
  #2  
Old September 21st, 2007, 02:55 PM posted to microsoft.public.access.tablesdbdesign
Carl Rapson
external usenet poster
 
Posts: 517
Default How to stop the combo box from repeating values

"AccessComp" wrote in message
...
I am using Access 2007 and I'm trying to get a combo box to display the
artists I have in my database but every time I go to another record or
close
out the database and open it up again, it automatically duplicates one or
two names into two additional lines. How can I make it display only the
names
I put in it? This usually happens when I try to use a query. However I
don't
know of any other way to get the combo box to display the names. I'm also
using the limit to list and not in list properties.
Can someone help me on this?. Thanks for your help in advance.


In the query that is feeding the combo box, are the names duplicated? If so,
you should be able to add DISTINCT to the query to show only one of each
value.

Carl Rapson


  #3  
Old September 21st, 2007, 11:52 PM posted to microsoft.public.access.tablesdbdesign
AccessComp
external usenet poster
 
Posts: 3
Default How to stop the combo box from repeating values


I inputed it as SELECT DISTINCT before the query and it keeps erasing the
last name on the list and inputs the name I have selected so I still have two
George Jones' in my list. What am I doing wrong?
"Carl Rapson" wrote:

"AccessComp" wrote in message
...
I am using Access 2007 and I'm trying to get a combo box to display the
artists I have in my database but every time I go to another record or
close
out the database and open it up again, it automatically duplicates one or
two names into two additional lines. How can I make it display only the
names
I put in it? This usually happens when I try to use a query. However I
don't
know of any other way to get the combo box to display the names. I'm also
using the limit to list and not in list properties.
Can someone help me on this?. Thanks for your help in advance.


In the query that is feeding the combo box, are the names duplicated? If so,
you should be able to add DISTINCT to the query to show only one of each
value.

Carl Rapson



  #4  
Old September 24th, 2007, 04:35 PM posted to microsoft.public.access.tablesdbdesign
Carl Rapson
external usenet poster
 
Posts: 517
Default How to stop the combo box from repeating values

Are you certain the names are exactly the same? Any difference, even an
extra space between the first and last name, would make the two names
different.

Beyond that, it's hard to tell without actually seeing what you're
describing. It doesn't sound like anything I've seen before.

Carl Rapson

"AccessComp" wrote in message
...

I inputed it as SELECT DISTINCT before the query and it keeps erasing the
last name on the list and inputs the name I have selected so I still have
two
George Jones' in my list. What am I doing wrong?
"Carl Rapson" wrote:

"AccessComp" wrote in message
...
I am using Access 2007 and I'm trying to get a combo box to display the
artists I have in my database but every time I go to another record or
close
out the database and open it up again, it automatically duplicates one
or
two names into two additional lines. How can I make it display only the
names
I put in it? This usually happens when I try to use a query. However I
don't
know of any other way to get the combo box to display the names. I'm
also
using the limit to list and not in list properties.
Can someone help me on this?. Thanks for your help in advance.


In the query that is feeding the combo box, are the names duplicated? If
so,
you should be able to add DISTINCT to the query to show only one of each
value.

Carl Rapson





 




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 06:33 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.