Solved

How to change the path of DoCmd.OpenForm

Posted on 2009-07-06
3
287 Views
Last Modified: 2013-11-29
I am working on a Access DB that I had to copy from one location to another so that I could work on it with out touching the original.  This is a DB that I have inherited and it has been a very long time since I have worked with vb and Access.

So every time I click a button I am getting the wrong path error to open up a different form. I have  looked at the code and  I am not able to see how to change the path to match the new path that I have for the test Access folder.

How would I go about making that change?

thanks
0
Comment
Question by:GabicusC
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Access MVP) earned 500 total points
ID: 24790479

Sounds like you need to relink tables to the back end at a new location.
In the database window, click on the Tables tab.
Right click over the window and select Linked Table Manager.

Check the box 'Always prompt for new location.

Then Select All, then Browser to the new location ... select the back end mdb ... and finish the relinking.

mx
0
 
LVL 14

Expert Comment

by:Bill Ross
ID: 24793290
Please post a screen shot of the error and the code that does  not work.  Alos, to verify that you are connected to data open the table that is bound to the form.  If there is no data your form will not display.  You must then relink per DatabaseMX instructions above.
0
 

Author Comment

by:GabicusC
ID: 24824875
DatabaseMX,

Thanks.

Gabicus
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Experts-Exchange is a great place to come for help with solutions for your database issues, and many problems are resolved within minutes of being posted.  Others take a little more time and effort and often providing a sample database is very helpf…
Phishing attempts can come in all forms, shapes and sizes. No matter how familiar you think you are with them, always remember to take extra precaution when opening an email with attachments or links.
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question