moke123
AWF VIP
- Local time
 - Yesterday, 19:27
 
- Joined
 - Jan 11, 2013
 
- Messages
 - 4,810
 
I've been playing around with dictionaries trying to get a grip on how to use them and what they can do.
I've been trying to declare a public dictionary so that its members are available to other procedures within the module.
It seems to work OK if I add the keys and items using Dict.Add "SomeKey", "SomeValue"
If I try to open a recordset and use Dict.Add "SomeKey", rs!SomeField and If I try to access any member I get an error that the object no longer exists.
Am I missing something? Or is this not possible?
 I've been trying to declare a public dictionary so that its members are available to other procedures within the module.
It seems to work OK if I add the keys and items using Dict.Add "SomeKey", "SomeValue"
If I try to open a recordset and use Dict.Add "SomeKey", rs!SomeField and If I try to access any member I get an error that the object no longer exists.
Am I missing something? Or is this not possible?