试一试:Cast(datefield As integer)

解决方案 »

  1.   

    Order By Cast(datefield As Integer),OK ?
      

  2.   

    谢谢arfeiz,只不过Access与SQL是有些差别的,
    eg:
    date1    11/21/01 1:54:46 
    date2     11/21/01 23:54:46 
    如果用int(date1),int(date2)在Access中得到结果是一样的。
    即int(date1)==int(date2)
    但在Sql Server中用Cast([date1] As Integer) 来得到的结果不一样
    Cast([date1] As Integer) <>Cast([date2] As Integer)