Re: Calling "Format" function in an expression of a query



On Tue, 28 Feb 2006 11:53:12 -0800, Stefan wrote:

I converted an older access application (*.mdb file) to Office Access 2003.
I tried to run this application on two different PCs. On both PCs Access
2003 is installed. I have a query which uses the "format" function for
getting parts of a date as string. On one PC I got the error message that the
function call "format" is not known. On the other PC everything works fine.
Why?

The expression:
Miete:Format([Mietpreis];"#.##0,00;-#.##0,00;0,00;0,00")
or
Sorting: Format([R-Mietende];"jjjjmm")

How can I pic dynamic parts of a date instead?
Of course I can write my own function, but this is much more slowlier!

With kind regards,
Stefan

That PC has a missing reference.
Open any module in Design view (or click Ctrl + G).
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.

For even more information, see
http://www.accessmvp.com/djsteele/AccessReferenceErrors.html
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
.



Relevant Pages

  • Re: Check for missing references on opening
    ... There may be a reason for a missing reference, ... Dim bAskFirst As Boolean ... Dim oRefs As Object ' References ...
    (microsoft.public.excel.programming)
  • Re: Combo box error
    ... "Larry Linson" wrote: ... > Tools | References to check for a missing reference. ... >> Pro hang on startup an I was forced to reinstall Windows. ... There is no 'references' option in my tools menu-another problem. ...
    (microsoft.public.access.formscoding)
  • Re: The "date" and the "visible" functions dont work
    ... If this is a new setup, I'm guessing you have a missing reference. ... choose References on the Tools menu. ... When you get an error message, it helps us identify the issue if you include ... rather than allenbrowne at mvps dot org. ...
    (microsoft.public.access.forms)
  • 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: Setting Date format within Concatenated field
    ... > doesn't like the format part of the code. ... I suspect you have a missing reference. ... On the Tools menu, click References. ... Microsoft Access' ...
    (microsoft.public.access.reports)