某个外部表加载条件设置了 [_Identify] Is NULL,正常显示为没有加载数据
在命令窗口测试下面代码显示正常,
<!--?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /-->
Dim y As Integer = Date.Today.Year
Dim m As Integer = Date.Today.Month
Dim dt1 As New Date(y, m, 1)
Dim dt2 As New Date(y, m, Date.DaysInMonth(y, m)) '获取本月的最后一天
Dim Filter As String
Filter = "日期 >= '" & dt1 & "' And 日期 <= '" & dt2 & "'"
With DataTables("各项消耗")
.LoadFilter = ""
.LoadFilter = Filter
.Load()
End With
放在afteropenproject后面执行结果是没有加载任何数据,请教是什么原因?