各位老师,怎么去重数据?sql中写了distinct,可是我想通过以下代码去重,应该怎么做?
With DataTables("mainFarmRecord_table1")
.LoadFilter=" F_Plant.GroupOrUserId='" & _GroupId & "'"
.LoadPage = 0 '加载第一页
.LoadTop = 10
.Reverse = True
.Load()
Forms("mainFarmRecord").Controls("textbox1").Value = 1 & "/" & .TotalPages
End With