Discussion Locked

Microsoft Access Query Error

0 helpful
7 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I wrote a report in Microsoft Access 97 based on a query. I've run it several times without a problem. Suddenly I got an error message - Function isn't available in expressions in query expression '(Format([requestdate],"MMM\YY"))'. I never modifiedthe query or the report,the error message just appeared this morning on its own. What causes this? Whats the resolution?

7 replies

by mbarker734

Your line:

(Format([requestdate],"MMM\YY"))

has the date separator backwards.

Try:

(Format([requestdate],"MMM/YY"))

Good Luck,

Mark

by ddressen

I have basically the same problem with the DLookup function. The Function works fine on PCs that were upgraded from Access 95 to Access 2000, but I get the "Function is not available in query expression" error on new PCs that have only had Access 2000 installed. Reinstalling has not helped. The program is compiled as an mde file, so the VBA references are OK. The MSDN site is absolutely no help.

The only clue I have found so far is from the Q&A thread "Access97 Date() function won't work" posted by dbwriter on 10/25/00. In that case, installing Access 2.0 over Access 97 restored the functionality of the functions.

I am running Access 2000 without the SR-1 or SR-1A updates, so I am going to try installing the SR-1A update to see if that fixes it. If it doesn't I am going to try installing Access 2.0.

This whole problem is bizzare (and apparently common). I'll let you know if I find a fix. David

by ddressen

The problems I described in Answer 2 above were not resolved by the SR-1a office update, or by installing Access 97 or Access 2 (I was thinking of missing DLLs).

All of the computers not having this problem had been upgraded from Access 95 to Access 2000, so I tried installing Access 95 on one of the failing computers. This eliminated the errors. Uninstalling Access 95 did not result in a return of the errors, so I concluded that one or more of the 27 files added to the C:\Windows\systemdirectory must have resolved the problems.

On a new computer which has had only Access 2000 installed, I copied the DLL files a couple at a time, then checked for the error. A set of three files resolved this problem: Msjetsql.tlb Msjetsql.cnt Msjetsql.hlp

By copying these 3 files to C:\Windows\system I eliminated all of the "function isn't available" errors in my application on several computers. I also copied: Msjeterr.cnt and Msjeterr.hlp since I suspect they might be required to process errors properly.

It appears that Microsoft forgot to include these Jet SQL system files in both the Access 97 and 2000 installations.

This discussion is closed to new replies.