Advertisement

03.31.2008 at 08:56PM PDT, ID: 23284757
[x]
Attachment Details

Dir() function generates error 52 bad file name or number

Asked by dougmurph in Access Coding/Macros

Tags: , , , , ,

We have a runtime application that has been distributed to many users.  We have a new user who is running our software, runtime in Access 2002 on Windows XP Pro.  When the program opens the first time the relinker does a test to see if the back end is where it is supposed to be using the dir() function.  In this case the recommended path is in a table and we test against that.  If it isn't there a dialog is opened so the person using the software can locate it with the File dialog.  We have been using this for years with no problem.  Now this client gets a "error 52 bad file name or number" error message on the module that does the BE location checking.  I looked in the module and the only place it could be generated is a line with the Dir() function.  My assumption is something is hosed with the Access runtime installation.  We have tested the installation disk in every way we can and can not get the error. I have done every thing I can think of to the Dir function and I can't recreate it.
 
Assuming a reinstall does not fix the problem any one have any more thoughts on places to look.  I did a Google search on this and the only problems I can find with Dir() are when it is used with network drives.  This isn't the case here, everything is on the C drive.Start Free Trial
[+][-]04.01.2008 at 08:43AM PDT, ID: 21255055

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 09:10AM PDT, ID: 21255357

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 10:07AM PDT, ID: 21255967

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 04:39PM PDT, ID: 21259062

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.01.2008 at 05:07PM PDT, ID: 21259173

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.15.2008 at 10:28AM PDT, ID: 21360732

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Access Coding/Macros
Tags: microsoft, Access, 2002, Runtime, VBA, error 52 bad file name or number
Sign Up Now!
Solution Provided By: dougmurph
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628