Changing working directory error message

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

I have changed the name of the directory that an Access.adp resides in. I
did this thru Windows Explorer. Now, when I double click on any .adp, a
startup message appears: "Microsoft Access can't change the working
directory 'C:\Projects\JD."

I changed the folder's name from the above to "C:\Projects\Delinquency".
Where is the setting that I can change to make Access "forget" that it had a
project in folder "C:\Projects\JD"?

Thanks,

Dean Slindee
 
Hi, Dean Slindee,

Thank you for using MSDN Newsgroup! It's my pleasure to assist you with
your issue.

For my understanding of your quesiton, you have one .adp file in a
directory " "C:\Projects\Delinquency" and then you rename the
"C:\Projects\Delinquency" to "C:\Projects\CJ", and after that, when you
double click any other .adp files, you encounter the error message
"Microsoft Access can't change the working directory 'C:\Projects\JD."
Right? If I misunderstood, please feel free to let me know.

I created some blank .adp files and change the directories of them and did
not encounter the problem you met. I wonder if in your .adp files, there is
some objects or code will use the directory information, for exampe,
"pages". Please check them and see if you problem resolved.

If you still have questions, please feel free to post new messages here and
I am ready to help.

Best regards

Baisong Wei
Microsoft Online Support
 
Puzzling, since you cannot reproduce it. Your understanding of the problem
is correct.
I have since renamed the directory back to the original name, and the
message no longer
pops up. This is not a solution, however.

I believe that the real fix will lie in the area of a registry hack to some
value stored therein.
I believe this because the message pops up immediately when starting Access,
no database application yet chosen. So, it is at the Access application's
settings.

Dean Slindee
 
Hi Dean,

Thank you for using MSDN Newsgroup!

Well, here is how I create a new project and a new data access page:
1. Open MSACCESS
2. create a new project with existing data, use the SQL Server run on my
computer as datasource, testing connection, OK, then save it to 'c:\test"
as project1.adp.
3. create a new page, use one table of my database on the page. Save the
page to 'c:\test' as page1.htm
4. Close MSACCESS
Double click the project1.adp, will open in MSACCESS. Double click
page1.htm, can navigate the records of the table in SQL Server in my
computer.

Then:
Change the name of 'c:\test' to 'c:\aaa'
Double click the project1.adp, will open in MSACCESS. Double click
page1.htm, can navigate the records of the table in SQL Server in my
computer.

Not encount the message you have meet. I wonder followed by this step, you
will encounter the message again.
If you have more questions, please feel free to post new message here and I
am ready to help.

Best regards

Baisong Wei
Microsoft Online Support
 
When I had this problem the error went away when I did the following:

1. Open Access (click cancel to the error that appears)
2. Click "Tools" - "Options"
3. Click the "General" tab
4. Under "Default Database Folder" - change the old directory name to
the new directory name (or just clear out the old and leave it blank).

Explanation: Access still has the old directory path saved as its
default path when opening a session of Access.

Hope this helps!
 
Back
Top