Solved

How to add unique values to a Combolist ?

Posted on 1998-08-04
1
130 Views
Last Modified: 2006-11-17
I have a tabel in Access with 5 records which have the field "test". The values for this field are : x,x,y,x,z. I want to make a Combolist in VB that is containing only the different possible values of this table. For this example :x,y & z.
- Does anyone knows the syntax how to make a recordset for this problem ?
- Or is there an other method ?
- Can this be solved easier with a DBCombolist?  
0
Comment
Question by:juul040798
1 Comment
 
LVL 6

Accepted Solution

by:
clifABB earned 200 total points
ID: 1467837
SELECT DISTINCT fieldname FROM tablename
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question