Hi! to all! Does anyone can help me on how display many fields after I use the count(*). I have already a code to check the multiple value of field and calculate the frequency base the count but my problem only one field will display. See the Table 1 for the result of my present code and see Table 2 for the result I wanted. Additional field I want to display is (Edaban and ID).
Table 1
Chiban Frequency
12345 2
Table2
Chiban Edaban ID Frequency
12345 23 1 2
Thanks in advance
Tirso
VB.NET:
objCommand = New OleDbCommand("SELECT Chiban, count(*) AS Frequency from TableData where chiban" & _
" In (select chiban from tabledata GROUP BY Chiban HAVING" & _
" Count(*)>1) GROUP BY Chiban ORDER by chiban", objConnection)
Table 1
Chiban Frequency
12345 2
Table2
Chiban Edaban ID Frequency
12345 23 1 2
Thanks in advance
Tirso