Re: Problem with Function Date() in query

From: fredg (fgutkind_at_example.invalid)
Date: 04/29/04


Date: Thu, 29 Apr 2004 21:06:00 GMT

On Thu, 29 Apr 2004 19:59:24 +0200, Rafał wrote:

> I have an updated query where function Date() is used.
> With Access XP(full instalation) query works OK.
> With Runtime I got the error 3075:
> "Function can not be used in query"
>
> Can anybody help me?
>
> Rafał

The machine may have a missing reference.
Open any module in Design view.
On the Tools menu, click References.
Click to clear the check box for the type library or object library
marked as "Missing:."

An alternative to removing the reference is to restore the referenced
file to the path specified in the References dialog box. If the
referenced file is in a new location, clear the "Missing:" reference
and create a new reference to the file in its new folder.

See Microsoft KnowledgeBase articles:
283115 'ACC2002: References That You Must Set When You Work with
Microsoft Access'
Or for Access 97:
175484 'References to Set When Working With Microsoft Access' for
the correct ones needed,
and
160870 'VBA Functions Break in Database with Missing References' for
how to reset a missing one.

-- 
Fred
Please only reply to this newsgroup.
I do not reply to personal email.


Relevant Pages

  • RE: IIf IsNull() Complile Error
    ... Microsoft Access 10.0 Object Library ... there is most likely something wrong with your references. ... Jerry Whittle, Microsoft Access MVP ... same error "Compile Error in Query Expression", and the SQL now reads as ...
    (microsoft.public.access.queries)
  • Re: +- 30 Days
    ... 'Reserved Words in Microsoft Access' ... then you might also have a Missing reference. ... On the Tools menu, click References. ...
    (microsoft.public.access.forms)
  • Re: Using the replace function
    ... I've been told that I need to use an update query with the ... Create a New Query. ... If this still throws an error, check your references. ... Microsoft Access' ...
    (microsoft.public.access.queries)
  • Re: Undefined function [Right$] in expression in a query after u
    ... Doug Steele, Microsoft Access MVP ... (no e-mails, please!) ... >> That PC has a missing reference. ... >> file to the path specified in the References dialog box. ...
    (microsoft.public.access.queries)
  • Re: format command
    ... Check your References. ... In any code window, ... > Access will find the missing reference on it's own. ... I think it is a query specific problema nd does not have ...
    (microsoft.public.access.queries)