我用分组框做了两个查询内容分别不一样的,(注这代码在用Table表中应用没问题?)如下:
代码一
Dim Filter As String
With e.Form.Controls("采购单位")
If .Value IsNot Nothing Then
Filter = "采购单位= '" & .Value & "'"
End If
End With
If Filter > "" Then
Tables("销售出库信息").Filter = Filter
End If
代码二
Dim Filter As String
With e.Form.Controls("产品编号")
If .Value IsNot Nothing Then
Filter = "产品编号= '" & .Value & "'"
End If
End With
If Filter > "" Then
Tables("销售出库明细").Filter = Filter
End If
如有问题请指教,谢谢!
.NET Framework 版本:2.0.50727.3643
Foxtable 版本:2016.6.26.1
错误所在事件:窗口,销售出库明细,查询1,Click
详细错误信息:
未设置对象变量或 With 块变量。

此主题相关图片如下:截图00.png


此主题相关图片如下:截图01.png