Adodc1.RecordSource = "select * from ( select * from aa id mod 16 = 0 ) where bbb='" & SelectString & "'order by ID "

解决方案 »

  1.   

    Adodc1.RecordSource = "select * from 数据 where 批号='" & SelectString & "' and id mod 16 =0 order by ID "
      

  2.   

    Adodc1.RecordSource = "select * from aa where (id mod 16) = 0 and bbb='" & SelectString & "' order by ID"
      

  3.   

    Adodc1.RecordSource = "select * from ( select * from aa id mod 16 = 0 ) as tmp where bbb='" & SelectString & "'order by ID "