Solved

How to change the path of DoCmd.OpenForm

Posted on 2009-07-06
3
296 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 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Did you know that more than 4 billion data records have been recorded as lost or stolen since 2013? It was a staggering number brought to our attention during last week’s ManageEngine webinar, where attendees received a comprehensive look at the ma…
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
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.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …

695 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