PaulBarter
MIS
I need to create a SQL statement for a control in VB6 to select only unique values of 2 fields:
eg
but I only want 1 record for any unique Field2 & Field3 combination.
If I use DISTINCT then it automatically include Field1 and Field4 in it's uniqueness test.
This is a file created in Access 2000
Any ideas?
eg
Code:
SELECT Field1, Field2, Field3, Field4 FROM MyTable ORDER BY Field2, Field3;
but I only want 1 record for any unique Field2 & Field3 combination.
If I use DISTINCT then it automatically include Field1 and Field4 in it's uniqueness test.
This is a file created in Access 2000
Any ideas?