Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

How to add unique values to a Combolist ?

Posted on 1998-08-04
1
Medium Priority
?
135 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 400 total points
ID: 1467837
SELECT DISTINCT fieldname FROM tablename
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
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…
Suggested Courses

916 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