Wrox Programmer Forums
|
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 November 23rd, 2005, 12:34 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default HashTables in VBA

Does anyone know if it is possible to create either a HashTable or a HashMap in VBA either Access or Excel - I am looking for the most efficient way to check values assigned to a large number of setting type values. If so, any suggestions as to how to set this up would be most qppreciated.

Thanks

Mike

Mike
EchoVue.com
__________________
Mike
EchoVue.com
 
Old November 28th, 2005, 01:54 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

I am not sure what the HashTable or Map is. Did you try viewing the system tables?


mmcdonal
 
Old November 28th, 2005, 02:27 PM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 564
Thanks: 0
Thanked 4 Times in 4 Posts
Default

Hi Mike,

A Hashtable or Map is a structure kind of like an array, where you have a series of names and values. You can then look up a value incredibly quickly. I was hoping to use it instead of an array to improve performance of an app I am working on, but I fear that it may be a feature confined to Java.

Thanks

Mike

Mike
EchoVue.com
 
Old May 31st, 2008, 10:40 PM
Registered User
 
Join Date: May 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

interestingly enough, the datatype you're looking for here is HashTable. it's built-in. ;)
Just search for "vba hashtable".

vbavet





Similar Threads
Thread Thread Starter Forum Replies Last Post
Hashtables Bill_Thompson C++ Programming 0 August 12th, 2008 05:29 AM
Code works in Excel VBA but not Access VBA fossx Access VBA 2 May 21st, 2007 08:00 AM
HashTables NitinJoshi General .NET 1 February 9th, 2005 03:53 PM
Shopping Baskets and Hashtables RobEdyvean VB How-To 1 August 18th, 2004 01:18 PM
Excel VBA to SQL & back to VBA edesousa Excel VBA 1 June 1st, 2004 02:39 AM





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