D
DP
Sorry for not being able to put a more precise description in the Subject
line of this posting, but I wasn't sure how to describe the problem.
I'm trying to figure out whether it's possible to run an order query like
this in order to begin populating a Treeview:
strsql = "SELECT DISTINCT Keyword FROM tblkeywordmasterOR;"
which will get me all ***distinct*** rows from tblkeywordmasterOR.
However, this will produce lots of records like this because each value
below is, of coruse, distinct:
D - xxxxx
D - yyyyy
D - xxxxx
D - aaaaa
D - bbbbb
Word - xxxx
Word - yyyy
Word - aaaaa
What I'm trying to do is separate out the initial string up to the " - ",
which is easy enough to do, ******BUT******* then I want only ONE VALUE
returned:
D -
Word -
Can I do this?!
The rest I can solve, and would then produce a treeview display something
like this
D -
xxxxx
yyyyyy
xxxxx
aaaaa
bbbbb
Word -
xxxx
yyyy
aaaa
But I'm stuck on limiting the returned value of the multiple first word
instances (D - , Word - ) to only ONE.
Can anyone help me?
Thank you, David Pie
line of this posting, but I wasn't sure how to describe the problem.
I'm trying to figure out whether it's possible to run an order query like
this in order to begin populating a Treeview:
strsql = "SELECT DISTINCT Keyword FROM tblkeywordmasterOR;"
which will get me all ***distinct*** rows from tblkeywordmasterOR.
However, this will produce lots of records like this because each value
below is, of coruse, distinct:
D - xxxxx
D - yyyyy
D - xxxxx
D - aaaaa
D - bbbbb
Word - xxxx
Word - yyyy
Word - aaaaa
What I'm trying to do is separate out the initial string up to the " - ",
which is easy enough to do, ******BUT******* then I want only ONE VALUE
returned:
D -
Word -
Can I do this?!
The rest I can solve, and would then produce a treeview display something
like this
D -
xxxxx
yyyyyy
xxxxx
aaaaa
bbbbb
Word -
xxxx
yyyy
aaaa
But I'm stuck on limiting the returned value of the multiple first word
instances (D - , Word - ) to only ONE.
Can anyone help me?
Thank you, David Pie