PDA

View Full Version : checkdic as dictionary



maryam
05-04-2007, 03:13 AM
I have checkdic as dictionary in my coding and when running I get this error: cannot find project or library. What control should I have?

maryam
05-04-2007, 04:32 AM
:help :help :help :help :help :help :help :help :help :help :help :help :help :help :help :help :help

matthewspatrick
05-07-2007, 05:52 AM
You need to either:

1) Set a reference to Microsoft Scripting Runtime or

2) Declare checkdic as Object, then use a line like this:


Set checkdic = CreateObject("Scripting.Dictionary")

maryam
05-07-2007, 10:30 PM
I have refrence to microsoft scripting run time, but it gives me cannot find project or library.
I declared checkdic as Private CheckDic As Dictionary, Is it different than difining it as object and then add Set checkdic = CreateObject("Scripting.Dictionary") ?

maryam
05-07-2007, 11:10 PM
Set r = New ADOR.Recordset
' Add the column
r.Fields.Append "Component", adVarChar, 50

it gives the same error for adVarChar. how to debug?