Selasa, 27 Desember 2011

[MS_AccessPros] Distinct Values

 

I have this Select statement on a form:

SELECT [tbl_Items].[ItemsID], [tbl_Items].[BoxNumber] FROM tbl_Items ORDER BY [BoxNumber];

How would I return just the Distinct or Unique values? I selected 'Yes' on Unique Values on the Query property sheet, but that did not work. I also tried this:

SELECT DISTINCT [tbl_Items].[ItemsID], [tbl_Items].[BoxNumber] FROM tbl_Items ORDER BY [BoxNumber];

But that didn't work either. Can someone please point me in the right direction?

Thanks,
John

__._,_.___
Recent Activity:
MARKETPLACE

Stay on top of your group activity without leaving the page you're on - Get the Yahoo! Toolbar now.

.

__,_._,___

Tidak ada komentar:

Posting Komentar