以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.net/bbs/index.asp)
--  专家坐堂  (http://foxtable.net/bbs/list.asp?boardid=2)
----  表达式老写不对  (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=119722)

--  作者:13888364119
--  发布时间:2018/5/30 19:42:00
--  表达式老写不对

1.

Dim AA4 As String = "201805"
Dim Products As List(Of String)
Products = DataTables("入库记录表").GetValues("入库单号","入库单号 like " & AA4)

2.

Dim aa4 As String = aa2 & aa3
Dim td1 As Integer
With Tables("入库记录表")
    Td1 = .Compute("count(入库单号)" ,"入库单号  like  \'" & aa4 & "\' ") 
     
End With

 

第一个是错的,不知怎么改,

第二个运行的结果不对,就找不到



--  作者:有点甜
--  发布时间:2018/5/30 21:20:00
--  
Dim AA4 As String = "201805"
Dim Products As List(Of String)
Products = DataTables("入库记录表").GetValues("入库单号","入库单号 like \'%" & AA4 & "%\'")
[此贴子已经被作者于2018/5/30 21:20:25编辑过]