Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 22nd, 2006, 11:45 PM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using the NodeCheck event in MS Access

I am trying the use the NodeCheck event for a tree control (as below), but Access won't recognise the event procedure.

Can anyone help?

Private Sub xTree_NodeCheck(Node As Node)

End Sub

 
Old April 24th, 2006, 06:37 AM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I can tell you are a VB programmer. NodeCheck is not available in Access (VBA).

HTH

mmcdonal
 
Old April 25th, 2006, 07:34 AM
Registered User
 
Join Date: Apr 2006
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Michael,

Thanks for this. I have managed to get the Node_Click and Node_Checked events going in VBA. The MS help files are slightly incorrect in regards to the variable declarations for the event procedures.

In VBA the node must be declared as type object (not type node as specified by MS). You can then create a node type object and set the first to the second which allows you access to the automatic editor tools.

This seems to work for me anyway.

Private Sub xtree_NodeClick(ByVal node As Object)

    Dim oClickedNode As node

    Set oClickedNode = node

    With oClickedNode (etc.)

...

End Sub

Thanks,
Karen






Similar Threads
Thread Thread Starter Forum Replies Last Post
Change the format of MS Excel Cells from MS Access hewstone999 Access VBA 0 March 7th, 2008 07:19 AM
Database migration MS Access 2003 to MS SQL 2000 ayazhoda SQL Server 2000 3 April 23rd, 2007 11:38 AM
MS ACCESS 2003 FRONTEND AND MS SQL SERVER 2005 DB mohankumar0709 SQL Server 2005 3 March 23rd, 2007 12:48 AM
MS Data Grid control in ms access application roshla_p Access VBA 5 October 16th, 2006 02:37 AM
Exporting data from MS Excel sheet to Ms Access ajindal General .NET 1 January 17th, 2005 03:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.