A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Use of date/time



 
 
Thread Tools Display Modes
  #1  
Old December 29th, 2009, 02:07 AM posted to microsoft.public.access.queries
Anthony Ching
external usenet poster
 
Posts: 17
Default Use of date/time

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?

--
Anthony
  #2  
Old December 29th, 2009, 02:44 AM posted to microsoft.public.access.queries
John W. Vinson
external usenet poster
 
Posts: 18,261
Default Use of date/time

On Mon, 28 Dec 2009 18:07:01 -0800, Anthony Ching
wrote:

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.
--

John W. Vinson [MVP]
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:55 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.