Sincere thanks to you all.
It appears that for some reason when MS Web Components are in the referance
list (although I have no reason to use them, but it keeps appearing in the
list and I keep removing it) the error Happens when I remove it like magic
no errors. If someone can explain that I will dance naked down my street
singing access newsgroups forever!!
Once again cheers!!
Get rid of all unnecessary references. Take a copy of your mdb, remove each
reference in turn, and see if it compiles. Compiles = reference unnecessary!
"OLE Automation" is certainly not required (even for OLE Automation! though
seldom does any harm). MS-Access just sticks some default references in for
good measure.
If you refer to "MS ActiveX data object 2.1 library" being the problem, find
out the filename and it must not be being distributed or installed correctly.
However, best just get rid of it.
On very rare occasions, it may be necessary to re-register DAO e.g.
regsvr32.exe <path>DAO360.dll
Since DAO is not the default for Access2002 (or A2k), either you altered the
reference list yourself, or it may have been done automatically if converted
from earlier version.
If any reference in the list is missing, the whole compile-thing throws a
wobbly (so to speak) and the error message could be anything, but that would
be a typical one.
Now, can you get your wife or daughter to deputise for you... ;-)
Chris
> Sincere thanks to you all.
>
[quoted text clipped - 5 lines]
>
> Once again cheers!!
Derek Brown - 20 May 2005 22:57 GMT
Hi Chris
Been on hols, had enough dancing naked but thanks for your reply. Most
appreciated
> Get rid of all unnecessary references. Take a copy of your mdb, remove
> each
[quoted text clipped - 42 lines]
>>
>> Once again cheers!!