title: Dictionaries and Hash Tables in MS-Access 2007
body: <p>I'm want to use either a hash table or a dictionary in my access program. Apparently, I'm supposed to be using the Microsoft Scripting Runtime Library for this, but it doesn't work.    </p>
  
  <pre><code>Dim Dict1 As Dictionary
  
  ' Create a dictionary instance.
  Set Dict1 = New Dictionary
  </code></pre>
  
  <p>It can't find the methods ".compareMode" or ".Add":</p>
  
  <pre><code>With Dict1
    'set compare mode
    .CompareMode = BinaryCompare
    ' Add items to the dictionary.
    .Add 1, "Item 1"
    .Add 2, "Item 2"
    .Add 3, "Item 3"
  End With
  </code></pre>
  
  <p>Instead, these are the only one avaiable to me:</p>
  
  <pre><code>.application
  .creator
  .delete
  etc...
  </code></pre>
  
  <p>Any clues?</p>