Print Page | Close Window

Access VBA & Taskpanel error

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Suite Pro
Forum Description: Topics Related to Codejock Suite Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=3113
Printed Date: 15 May 2024 at 7:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Access VBA & Taskpanel error
Posted By: syndalis
Subject: Access VBA & Taskpanel error
Date Posted: 27 October 2005 at 10:36am

I am trying to use the following code:

 

Private Sub wndTaskPanel_ItemClick(ByVal Item As ITaskPanelGroupItem)
    Debug.Print "ItemClick event. Item.Caption = " & Item.Caption
End Sub

from the VB6 example, I modified it as such

Private Sub wndTaskPanel_ItemClick()

Dim Item As ITaskPanelGroupItem
msgbox (Item.Caption)
End Sub

I am getting an onOpen error on my form, not allowing me to bring the form  into live mode, and I believe it has to do with the fact that ItemClick is not recognized as an event in Access. How do i go about fixing that?




Replies:
Posted By: Oleg
Date Posted: 28 October 2005 at 6:21am

In Access you must use

ByVal Item as Object



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net