I have made a List Box in MS Access 2010. I am using this query for showing up only distinct values from the column (AOM) from which the List Box is getting data:
SELECT [Exhibit Recording].ReferenceNo, DISTINCT [Exhibit Recording].AOM
FROM [Exhibit Recording];
Now When I am using this an error "syntax error (missing operator) in query expression 'DISTINCT [Exhibit Recording].AOM'." keeps popping up, but disappears when I remove DISTINCT.
Is there any way to have distinct values in a list box and not get that error?
I also tried using:
SELECT DISTINCT [Exhibit Recording].AOM
FROM [Exhibit Recording];
The query runs fine, but the text in the listbox disappears and when you click on it it shows a dark band to show that something has been selected. Any way of getting around this ?