Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
做不起来!我的意思是做一窗口,做两个文本输入框,一个是订单号,一个是口岸,输入订单号和口岸后,做一个筛选按钮,按筛选按钮后将A表的符合订单号和口岸条件的筛选起来,同时B表中的符合这两个条件的也同时被筛选。
注:"DDH","KA"分别为"订单号"和"口岸"的输入框名
'''
Dim Ls As String() = {"DDH","KA","订单号","口岸"}
Dim Ft,Tc As String
For n As Integer = 0 to 1
Tc = e.form.Controls(Ls(n)).Value
if Tc > "" then
Ft = Ft & " And " & Ls(n+2) & " = '" & Tc & "'"
End If
Next
If Ft > "" Then
Tables("A").Filter = Ft.SubString(5)
Tables("B").Filter = Tables("A").Filter
End If
注:"DDH","KA"分别为"订单号"和"口岸"的输入框名
'''
Dim Ls As String() = {"DDH","KA","订单号","口岸"}
Dim Ft,Tc As String
For n As Integer = 0 to 1
Tc = e.form.Controls(Ls(n)).Value
if Tc > "" then
Ft = Ft & " And " & Ls(n+2) & " = '" & Tc & "'"
End If
Next
If Ft > "" Then
Tables("A").Filter = Ft.SubString(5)
Tables("B").Filter = Tables("A").Filter
End If
谢谢!你的代码总是简单实用,虽说还是有一点看不太懂(老六的马马虎虎还行),但代码可以简化到这样,绝对值得我学习。希望可以有所收获。
谢谢!你的代码总是简单实用,虽说还是有一点看不太懂(老六的马马虎虎还行),但代码可以简化到这样,绝对值得我学习。希望可以有所收获。
哈哈,因为我是常人,YBIL是超人。
哈哈,因为我是常人,YBIL是超人。
nnd,俺乃凡夫,何来超人!