树型结构的这段代码有什么问题?为什么不能查ID(主关健字)?
Private Sub Treeview_NodeClick(ByVal Node As Object)
Dim str As String
If Node.Key = "²úÆ·¹¤Ðò" Or Node.Key Like "¸¸*" Or Node.Key Like "×Ó*" Then
str = ""
Else
str = "[¹¤ÐòID]= '" & Node.Key & "'"
End If
Me.Text29 = Mid(Node.Key, 2)
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Me.Form.Filter = str
Me.FilterOn = True
End Sub