PC Review


Reply
Thread Tools Rate Thread

docmd.copyobject

 
 
tted78
Guest
Posts: n/a
 
      12th Sep 2008
I've been using "docmd.copyobject" in Access 2000 to copy a series of tables
from one database to four other databases without any problems. Now that I
have converted to Access 2007, the vba instructions do not work. I am first
asked if I want to replace the subject table in the destination, but then I'm
told that I can't replace it because it is participating in one or more
relationships. Can anyone offer any suggestions to make these vba
instructions work?

Thanks....Ted
 
Reply With Quote
 
 
 
 
Alex Dybenko
Guest
Posts: n/a
 
      12th Sep 2008
Hi,
perhaps you need to remove relation before copying? Anyway - I think better
approach - is to use delete and then append query to copy tables, then to
copy them using copyobject method

--
Best regards,
___________
Alex Dybenko (MVP)
http://accessblog.net
http://www.PointLtd.com



"tted78" <(E-Mail Removed)> wrote in message
news:8EC3264B-3320-4A09-8A3B-(E-Mail Removed)...
> I've been using "docmd.copyobject" in Access 2000 to copy a series of
> tables
> from one database to four other databases without any problems. Now that
> I
> have converted to Access 2007, the vba instructions do not work. I am
> first
> asked if I want to replace the subject table in the destination, but then
> I'm
> told that I can't replace it because it is participating in one or more
> relationships. Can anyone offer any suggestions to make these vba
> instructions work?
>
> Thanks....Ted


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
docmd.copyobject allen, gary Microsoft Access VBA Modules 5 22nd Apr 2010 06:07 PM
Errors with DoCmd.CopyObject? Larry Kahm Microsoft Access 0 1st Apr 2009 11:42 PM
DoCmd.CopyObject =?Utf-8?B?QnJhZA==?= Microsoft Access VBA Modules 0 10th Mar 2006 02:55 PM
DoCmd.CopyObject Matt Microsoft Access Form Coding 1 21st May 2004 11:43 AM
Re: DoCmd.CopyObject question Jeff Boyce Microsoft Access Database Table Design 2 8th Aug 2003 01:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:51 PM.