<>和=在链接数据库是有顺序的如
正确代码
txtsql = “select * from recharge_info where date >=’” & DTP1.Value & “'and date <= '” & DTP2.Value & “’”
Set mrc = ExecuteSQL(txtsql, msgtext)
错误代码
txtsql = "select * from recharge_info where date =>'" & DTP1.Value & "'and date =< '" & DTP2.Value & "'"
Set mrc = ExecuteSQL(txtsql, msgtext)