How to use DISTINCT in dataTable.select method

B

Balu Smiles

Hi All,

can body give solution to this

________________________________________________
Dim oDataRow As DataRow
oTable = oDataset.Tables(0)
Dim objResults() As DataRow
objResults = oTable.Select("DISTINCT objType")
For Each oDataRow In objResults
debug.writeline(((oDataRow("objType")))
Next
________________________________________________

Thanks

BaluSmiles


Thanks
 
R

Rajesh Patel

select method accepts filter condition as 1st parameter if you send any
parameter. I don't think, distinct objType is valid filter condition.

Rajesh Patel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top