DoCmd.CopyObject fails when run from Word VBA

  • Thread starter Thread starter Bo Hansson
  • Start date Start date
B

Bo Hansson

I'm trying to copy tables from one database to another by means of
DoCmd.CopyObject, run from Word VBA. But the result is'nt what I expected.
Freely translated from Swedish I get a run time error (2486) that says:
"This action cannot be performed right now"

My question is: WHEN can I do it ? ...... and: what's wrong ?


/BosseH
 
Are you automating Access (as server) from Word (client)?

If you are, I think you can use:

objAccessAppln.DoCmd.CopyObject ...

where objAccessAppln is your automated Access application.
 
Back
Top