Pb sur CreateObject (Scripting.Dictionary)
Bonjour a vous tous,
Il y a un truc que je ne pige pas !!!!
je suis sous access 2000
J'ai un module de classe nommé "Obj1" qui ressemble a ça:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Private ListA
Private ListB
Private Sub Class_Initialize()
'creation des collections
Set ListA = CreateObject(Scripting.Dictionary)
Set ListB = CreateObject(Scripting.Dictionary)
End Sub
Public Sub test()
ListA.Add "A", "Ligne1"
End Sub
Public Sub test2()
msgbox "toto"
End Sub |
Et quand je fait dans une de mes fonctions:
Code:
1 2 3
|
Dim O1 As New Obj1
Osql.test |
J'ai une Erreur : 424 - Objet requis :bug:
alors que si je fais:
Code:
1 2 3
|
Dim O1 As New Obj1
Osql.test2 |
ça fonctionne impecc !!!!!!!!????????
Quelqu'un a une idée ?