Dropdown list shows multiple entries...How do i get it to show one only? (1 Viewer)

Bobp3114

Member
Local time
Today, 15:25
Joined
Nov 11, 2020
Messages
42
My database has a field "Town" as part of the address of each customer. Each town (say Brisbane) can have many customers, so when i use a combo box to select a town I get multiple instances of each town. How do i get it to show only one instance of each town?
1672276754929.png

Thanks in advance
Bob
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 13:25
Joined
May 7, 2009
Messages
19,247
use a Total Query as your combo's Rowsource:

SELECT Town From yourTable GROUP BY Town;
 

June7

AWF VIP
Local time
Yesterday, 21:25
Joined
Mar 9, 2014
Messages
5,486
Or

SELECT DISTINCT Town FROM yourTable ORDER BY Town;

Or

Have a Towns table and use that as combobox source. Save TownID into record.
 

Users who are viewing this thread

Top Bottom