Solved

How to change the path of DoCmd.OpenForm

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

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
Introduction When developing Access applications, often we need to know whether an object exists.  This article presents a quick and reliable routine to determine if an object exists without that object being opened. If you wanted to inspect/ite…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
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 …

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now