Exodus
Registered User.
- Local time
- Today, 12:49
- Joined
- Dec 4, 2003
- Messages
- 317
So the company I work for rolled out Windows and Office updates last night
Now my tree control menu stopped working. We are on windows 7 64bit and office 2010. The node_click sub no longer opens any of my forms. Any suggestions besides the fact that I was using an ActiveX control to begin with. I can't even get a break point to work in the VBA editor. Below is my code.
Now my tree control menu stopped working. We are on windows 7 64bit and office 2010. The node_click sub no longer opens any of my forms. Any suggestions besides the fact that I was using an ActiveX control to begin with. I can't even get a break point to work in the VBA editor. Below is my code.
Code:
Private Sub TreeCtl_NodeClick(ByVal mNode As Object)
Dim sFormToOpen As String
Dim RecordtoSelect As Long
Dim rstSource As DAO.Recordset
Dim dbs As DAO.Database
Dim sFrmVw As Long
DoCmd.Hourglass False
Select Case Left(mNode.Key, 1)
Case "R"
If mNode.Key = "RootNode" Then
If mNode.Expanded = True Then
mNode.Expanded = False
Else
mNode.Expanded = True
End If
End If
Case "p"
If Left(mNode.Key, 1) = "p" Then
If mNode.Expanded = True Then
mNode.Expanded = False
Else
mNode.Expanded = True
End If
End If
End Select
If mNode.Key = "P|9999" Then
Import_AmAsset
End If
If mNode.Key = "P|9000" Then
If IsLoaded("FindPolls") Then
DoCmd.Close acForm, "FindPolls"
End If
Call ResetToolbars
Call NormalSetDefaultShrtCutMenu
DoCmd.Quit
End If
If Left(mNode.Key, 1) = "c" Then
RecordtoSelect = Right(mNode.Key, 4)
Else
' Exit Sub
End If
Set dbs = CurrentDb()
Set rstSource = _
dbs.OpenRecordset("select * from tblMenuForms where Id = " & RecordtoSelect, dbOpenDynaset)
Select Case Left(mNode.Key, 1)
Case "c"
With rstSource
sFormToOpen = !FormName
sFrmVw = !FrmView
DoCmd.OpenForm sFormToOpen, sFrmVw
End With
End Select
End Sub