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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A2K Dir() Function: It Works/It Works Me Not

Status
Not open for further replies.

GGleason

Technical User
Mar 22, 2001
321
US
I am using the Dir() function in a query in an mdb converted from A97 (Win NT SP6) to A2000 SR-1 (W2K SP4). I get an error when I run the query that states "Undefined function 'Dir' in expression." When I go to the immediate window and do a ?Dir(), I get data and no error.

The query used to work in the older version. The query also works on another W2K/A2K machine (same OS and Access builds but different images). ARGHH! Can someone give me directions on where to look?

Thanks,
GGleason
 
Check to make sure that you have the reference to DAO 3.6 set.

Open any module in design, click on Tools/References.


Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
Larry,

When I saw your comments yesterday I started working feverishly to see if I could get a fix in place.

I copied and registered the DAO from the "good" PC to the "bad" PC, but still have the same problem. I think it is something along these lines (PC resident software) rather than a coding error. Another PC that was made with the same image as my "bad" PC had the same error on the same query, so it least it is consistent.

These problems are so hard to debug and it appears that this problem is above my pay grade.

At least I still have hope that I can fix it.

Thanks,
GGleason
 
You might try doing a reinstall of Access on the 'bad' systems to see if that might fix the problem.

Larry De Laruelle
ldelaruelle@familychildrenscenter.org

 
FYI:

The IT group where I work fixed the problem. They spent a lot of time looking into it and in the end it was a registry tweak.

Thanks,
GGleason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top