Hello
The msgbox is returning false results.Code:"Select affiche, Count(num)as num from Table1 where num = " & Text1.Text & " GROUP BY affiche", DB, adOpenStatic, adLockOptimistic MsgBox RSS.RecordCount
In the database I can see only one item in the affiche field but the msgbox is returning 2 items.
The same thing with distinct funcction
Then I used DISTINCTROW functionCode:"Select distinct affiche from Table1 where num = " & Text1.Text & " ", DB, adOpenStatic, adLockOptimistic
the mesagebox returns 3Code:"Select DISTINCTROW affiche from Table1 where num = " & Text1.Text & " ", DB, adOpenStatic, adLockOptimistic
Attachment 135733




Reply With Quote