|
3#
楼主 |
发表于 2018-9-5 10:17:17
|
只看该作者
Private Sub Treeview_NodeClick(ByVal Node As Object)
Dim str As String
If Node.Text = "有线" Or Node.Key Like "父*" Then
str = ""
ElseIf Node.Key Like "子*" Then
Me.选项卡控件0.Value = DLookup("选项卡页", "机种清单表", "机种='" & Node.Text & "'")
ElseIf Node.Key Like "孙*" Then
Me.选项卡控件0.Value = DLookup("选项卡页", "机种号码表", "管理号码='" & Node.Text & "'")
str = "[管理号码]='" & Node.Text & "'"
End If
Me.Form.FilterOn = True
Me.Form.Filter = str
End Sub
谢谢!我刚自学ACCESS3个月,目前不怎么会写程序。上面是我的代码,能否帮忙修改书写。
十分感谢! |
|