TypeMismatch - TreeView Control

D

David C. Holley

I'm getting a Type Mismatch when I try to set the object variable. If I
can't declare the variable as a TreeView what should I be declaring it as?

'Module level
Private tvCtrl As TreeView

Private Sub Form_Load()

Me!cmdFocusTarget.SetFocus
Set tvCtrl = Me!tvTreeView
tvCtrl.Nodes.Clear
Call loadTreeView
'DEV Capture the Timer Interval
mOldFormTimer = Me.TimerInterval

End Sub
 
D

Dirk Goldgar

David C. Holley said:
I'm getting a Type Mismatch when I try to set the object variable. If
I can't declare the variable as a TreeView what should I be declaring
it as?

'Module level
Private tvCtrl As TreeView

Private Sub Form_Load()

Me!cmdFocusTarget.SetFocus
Set tvCtrl = Me!tvTreeView
tvCtrl.Nodes.Clear
Call loadTreeView
'DEV Capture the Timer Interval
mOldFormTimer = Me.TimerInterval

End Sub

Try

Set tvCtrl = Me!tvTreeView.Object
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top