Use of date/time

A

Anthony Ching

I am using MS Office 2007. I have a query using Now() for the date/time. When
I generate the run-time version on my machine, it worked fine. However, when
the same application is generated on another machine with Office 2003, the
application failed with a run-time error when the query is executed. Am I
missing certain library which I need to include when generating the run-time
package?
 
J

John W. Vinson

I am using MS Office 2007. I have a query using Now() for the date/time. When
I generate the run-time version on my machine, it worked fine. However, when
the same application is generated on another machine with Office 2003, the
application failed with a run-time error when the query is executed. Am I
missing certain library which I need to include when generating the run-time
package?

This appears to be the very common References bug. Open any
module in design view, or open the VBA editor by typing
Ctrl-G. Select Tools... References from the menu. One of the
..DLL files required by Access will probably be marked
MISSING. Uncheck it, recheck it, close and open Access.

If none are MISSING, check any reference; close and open
Access; then uncheck it again. This will force Access to
relink the libraries. The Date() and Now() functions are very vulnerable to
this error; if *ANY* library is missing, they may well fail.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top