Russ: Do any of those references have "MISSING" next to them? (and unless
you are using the Common dialog control (very buggy) or VBA extensibility
(manipulating code via code) you can uncheck those).
Re the order. With one exception, I don't think it matters. DAO before ADO
(or vice versa) is the only case I know of where the "order" might make a
difference in compilation because they both have some, but not all, object
names (e.g., Recordset) in common. If the project code is DAO based and
hasn't been disambiguated ("Dim rst as DAO.Recordset" rather than "Dim rst
as Recordset"), putting the DAO reference ahead of ADO might gloss over some
problems.
I do not know which library might be necessary for date/time functions.
VBA, but it doesn't matter. Any Missing reference will prevent compilation.
The fact that it errored on a VBA function is almost always misleading.
HTH,
--
George Nicholson
Remove 'Junk' from return address.
Klatuu said:
No, I do not. I have had it happen to me twice that I got a reference
error,
so I moved what I thought was the offending reference higher in the list
and
it worked.
:
Klatuu,
Do you know the logic behind the order they should be in?
Klatuu wrote:
Here is what I have:
Visual Basic for Applications (probably not it)
Microsoft Access 11.0 object library (because I am in a 2003
environment)
Microsoft DAO 3.6 object library
OLE Automation
Microsoft Visual Basic for Applicatons Extensibility 5.3
Microsoft OUtlook 11.0 Object Library
Microsoft Excel 11.0 Object Library
Microsoft ActiveX Data Objects 2.1 Library
Microsoft PowerPoint 11.0 Object Library
Microsoft Windows Common Controls 6.0 (SP6)
Also, I have found that the order in which the appear can make a
difference.
Thanks, but giving the same error;
Comile error;
[quoted text clipped - 19 lines]
Returns the current hour value as a 2 character string (with leading
zero)