Why does this happen?

PearlGI

Registered User.
Local time
Today, 20:28
Joined
Aug 30, 2001
Messages
125
I have a query which contains a calculated field that utilises the Nz function to deal with NULLs. This query works fine by itself.
However, when I try to call this query in VBA using the OpenRecordSet action, I get the error message:

"Undefined function 'nz' in expression"

Why does this happen and what can be done to resolve it?

Any suggestions gratefully received.
 
Since NZ is supposed to be an intrinsic function, the linked reference might not help.

I recently had this problem with the Left$ function in a query. My solution was to get the database in exclusive mode and repair it. (I'm using AC97). I got the same message you did. When I repaired the database, the problem went away.

I have no idea WHAT actually got repaired, but whatever it was, it worked.
 
Thanks Doc.

Repairing the database worked.
smile.gif
 

Users who are viewing this thread

Back
Top Bottom