先看5遍:
http://www.foxtable.com/webhelp/topics/1284.htm,如果下次还有同样问题,每次先看5遍再去看自己的代码
DataTables("SDPHD").LoadFilter = " DM1 = '" & cb1.text & "' And DM2 = 004 AND RQ >=
& StartDate & "' And RQ <=
'" & EndDate & "'"
比如自己区分一下有什么不同:
msgbox(" DM1 = '" & cb1.text & "' And DM2 = 004 AND RQ >= "' & StartDate & "' And RQ <= "' & EndDate & "'")
msgbox(" DM1 = '" & cb1.text & "' And DM2 = 004 AND RQ >= & StartDate & "' And RQ <= '" & EndDate & "'")
[此贴子已经被作者于2020/7/2 9:03:23编辑过]