经过测试找不到"运输方式"列的原因可能就是这个!狐爸看看 Post By:2009/8/19 19:23:00 [只看该作者]
Dim Filter As String With e.Form.Controls("ddh") If .Value IsNot Nothing Then Filter = "IO = '" & .Value & "'" End If End With With e.Form.Controls("KA") If .Value IsNot Nothing Then If Filter > "" Then Filter = Filter & " And " End If Filter = Filter & "口岸 = '" & .Value & "'" End If End With With e.Form.Controls("ys") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "运输方式 = '" & .Value & "'" End If End With With e.Form.Controls("BZ") If .Value IsNot Nothing Then If Filter >"" Then Filter = Filter & " And " End If Filter = Filter & "包装 = '" & .Value & "'" End If End With If Filter > "" Then Tables("装箱单").Filter = Filter Tables("订箱单").Filter =tables("装箱单").Filter Tables("出运资料").Filter =tables("装箱单").Filter Tables("装箱统计").Filter =tables("装箱单").Filter Tables("裁剪数").Filter =tables("装箱单").Filter End If