我在afterprojectload事件中写了如下代码,可是系统提示了如截图的错误,请老师指点于我,我想实现的功能就在数据之载入当年的数据
Dim y As Integer = Date.Today.YearDim dt1 As New Date(y, 1, 1)Dim dt2 As New Date(y, 12, 31) Dim Filter As StringFilter = "日期 >= #" & dt1 & "# And 日期 <= #" & dt2 & "#" DataTables("收购记录").LoadFilter = FilterDataTables("收购记录").Load()