Dim dr1 As DataRow
msgbox("订单日期 = \'" & r("订单日期") & "\' and 订单时间 <= \'" & r("订单时间") & "\'")
dr1 = DataTables("订单明细表").find( "订单日期 = \'" & r("订单日期") & "\' and 订单时间 <= \'" & r("订单时间") & "\'","订单时间 desc")
If dr1 IsNot Nothing Then
msgbox(1)能不能弹出
Dim d3 As Date = dr1("订单时间")
Dim d4 As Date = r("订单时间")