?
Solved

How to change the path of DoCmd.OpenForm

Posted on 2009-07-06
3
Medium Priority
?
298 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 75

Accepted Solution

by:
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
Suggested Courses

777 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