473,387 Members | 1,517 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Problem trying to replace a Form using the Macro CopyObject command.

I have an MS Access 8.0 (Office97) program that has a form called
FO-008 that I need to replace on several users computers in different
locations without me being there doing it manually.

I'm trying to perform the replacement by using an external MS Access
program that contains the replacement form also called FO-008. I need
to keep the same form name since the form contains relationships to
other forms and quarries in the program.

When I run the Macro (CopyObject ) I get the following error message
"Object Invalid or no longer set"

Macro Info:
Destination Database:
C:\00-Dell-Transfer\Testing\User-Mropuf20.test.mdb
New Name:
Source Object Type: Form
Source Object Name: FO-008

Can anyone help me?

Is there another way to do it?
Nov 12 '05 #1
1 2000
If memory serves, beginning with Access 97 you can not push an object
such as a form from one database into another, even if you try to
delete it first. We used to do things that way back in the Access 2.0
days to distribute version updates to our users. In Access 97, you
have to drive the process from the file being updated. That is, in
the file to update, delete the existing object then pull the updated
copy from your update database. Since you obviously don't have the
hooks in place to automate the process, you will have to give your
users instructions to do it themselves. Send them an mdb with the
updated form and show them how to delete the existing form then use
File | Get External Data | Import, etc. to import the form. HTH

Rick Collard
www.msc-lims.com
On 17 Feb 2004 09:16:59 -0800, mi****@msn.com (Michael Eisner) wrote:
I have an MS Access 8.0 (Office97) program that has a form called
FO-008 that I need to replace on several users computers in different
locations without me being there doing it manually.

I'm trying to perform the replacement by using an external MS Access
program that contains the replacement form also called FO-008. I need
to keep the same form name since the form contains relationships to
other forms and quarries in the program.

When I run the Macro (CopyObject ) I get the following error message
"Object Invalid or no longer set"

Macro Info:
Destination Database:
C:\00-Dell-Transfer\Testing\User-Mropuf20.test.mdb
New Name:
Source Object Type: Form
Source Object Name: FO-008

Can anyone help me?

Is there another way to do it?


Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Roy Adams | last post by:
Hi group I'm having trouble using the replace command Here's my code below <%@LANGUAGE="JAVASCRIPT" CODEPAGE="1252"%> <!--#include file="../../Connections/conn.asp" --> <% if(...
8
by: Rich Grise | last post by:
I think I've finally found a tutorial that can get me started: http://www.zib.de/Visual/people/mueller/Course/Tutorial/tutorial.html and I've been lurking for awhile as well. What happened is,...
13
by: Tony Johansson | last post by:
Hello Experts! I want to create a virtual clone but I'm not sure if this is the wright way. Can somebody tell me where I have made error in the code. I get some compile error in this code also....
0
by: dlieu | last post by:
I've found an odd situation in where the Load event of the active form fires (after the Unload event) when Access is closed. I am able to reproduce this situation in Access 2002 SP3 and Access 2003...
2
by: Just Me | last post by:
Using the IDE: Replace in Files Suppose I want to change all words: <something>Form to new words: Form<something> Can that be done and if so How? Thanks
1
by: Mexar | last post by:
My programming grammar might be a little off but I have a pretty good idea of what I need to convey. I am making an Access database with a form that pops up and lets you choose to select an...
4
by: Regnab | last post by:
I've got a form - "frmLookup" (with a subform) that works very happily on its own. The form has a list box, which when updated requeries the subform to display the appropriate results. The...
1
by: JOHN C DEVONSHIRE | last post by:
I am creating a new form(s) in MsAcess while it is open by more then one users I have no trouble '------------------------------------------------------------ ' Module :...
2
by: troy_lee | last post by:
Let's say I have a template form named Form1. I have two text fields named Month and Year. Using an event procedure from another form, I want to: 1) Open the template form 2) Name the form...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.