以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  怎么使用 select 或find 查找到月份的行  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=186412)

--  作者:ls93005
--  发布时间:2023/4/27 11:40:00
--  怎么使用 select 或find 查找到月份的行

DataTables("车报表").Find("年月 = #4/*/2023# ")

类似这种意思

Dim tby As Integer = rq.Year - 1
Dim tbm As Integer = rq.Month
Dim tbrq1 As Date = New Date(tby, tbm, 1)
Dim tbrq2 As Date = New Date(tby, tbm, Date.DaysInMonth(tby, tbm))

Dim tbrow As DataRow = DataTables("月出租车报表").Find("年月 > = & tbrq1 &   And 年月 < =  & tbrq2 &  ")

--  作者:有点蓝
--  发布时间:2023/4/27 11:43:00
--  
Dim tbrow As DataRow = DataTables("月出租车报表").Find("年月 >= #" & tbrq1 &  "# And 年月 <= #" & tbrq2 & "# ")