Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

access97 nz function now broken

Status
Not open for further replies.

jmion

Programmer
Apr 9, 2002
3
CH
any idea why the nz function does work in my vba code (form module)? i think the problem may be related to the jetcomp.exe i ran as the default destination db format is 4 and i may have used that by mistake. I've tried compacting again and creating a new db and importing the objects but still no luck - keep getting the infamous "undefined function nz() in expression" error at run-time. module compiles at design time but i get "Compile error - Method or data member not found" at run-time.

the function appears in the object browser in the Access 8.0 Object Library but even explicitly referencing it (Application.NZ() doesn't work. ARGHH! i would think it's just not available in VBA but it was working fine yesterday.

the references dialog shows the correct path for the 3 references (c:\program files\common files\microsoft shared\vba\vba332.dll - C\Program Files\Microsoft Office\Office\MSACC8.OLB - c:\program files\common files\microsoft shared\dao\dao350.dll). de-selecting/re-selecting it didn't help

thx in advance for any suggestions

jm
 
Have you tried deselecting one reference, then exit the database, then add the reference back in again?
 
yes i tried that - should have mentioned it :(
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top