OK, maybe an example would help.
Code:
Dim ID
Dim dct
Set dct = Server.CreateObject("Scripting.Dictionary")
' you don't say where the IDs come from, so I'll use a recordset (rs) for this example
' Here we add all unique IDs into the Dictionary
Do While Not rs.EOF
ID = rs.Fields("ID").Value
If Not dct.Exists(ID) Then
' I don't know whether you want to associate anything with the IDs
' so I'm just using Null here
dct.Add ID, Null
End If
rs.MoveNext
Loop
' all the unique IDs are now in the Dictionary
' to get an array of the IDs use:
someArray = dct.Keys
' to get an array of the items associated with the IDs (Nulls in this case) use:
someArray = dct.Items
' to get the item associated with a particular ID use:
someItem = dct(anyID)
hth, if not then explain a bit more what you're trying to achieve and post some of your code.
Phil