I have an access table linked to a datagrid and I would like the datagrid to display only the DISTINCT values in each column. The table looks like this:
And I'd like the datagrid to display this:
"SELECT DISTINCT AGE,COUNTY,SCHOOL FROM mytable" doesn't work. Any help greatly appreciated.
Code:
[tt]
[u]Age | County | School[/u]
U8 | Surrey | ST TERESA'S
U8 | Sussex | CHEAM
U9 | Sussex | PUTNEY HIGH
U10 | Surrey | DANES HILL
U11 | BERKS | KNAPHILL
U11 | BERKS | OLD PALACE
U12 | SURREY | ST TERESA'S
[/tt]
And I'd like the datagrid to display this:
Code:
[tt]
[u]Age | County | School[/u]
U8 | Surrey | ST TERESA'S
U9 | Sussex | PUTNEY HIGH
U10 | BERKS | DANES HILL
U11 | | KNAPHILL
U12 | | OLD PALACE
| | CHEAM
[/tt]