Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with TransferDatabase and CopyObject Methods

Status
Not open for further replies.

ImpMan

Technical User
Jan 25, 2001
42
GB
I am using either the CopyObject or TransferDatabase methods to move tables, queries and forms to another database. There are no problems with the tables or queries but there are problems with the forms.

The problem is that when the code executes the code will probably work first time (not always), the second time an error will occur that states 'Object invalid or no longer set'. When I select debug from the message box the problem line is highlighted, I press F8 to single step and the line of code works fine!

Any ideas?

By the way, what is the differenec between TranferDatabase and CopyObject methods?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top