Hi,
I have a form with a vba programmed button. It has been working fine for a while, but I came to use it today and it came up with the following:
Run-time error '2046':
The command or action 'Copy' isn't available now.
The only thing I have changed is that I have added a bit of tried & tested "timer" code around the original code - but I can't see how that would stop it from working!
The code I have is is a simple, open -> copy -> close:
DoCmd.OpenTable "TblJdeWeeklyDetailTEMP"
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.RunCommand acCmdCopy
DoCmd.Close acTable, "TblJdeWeeklyDetailTEMP"
The error highlights the 3rd line when you run the debug.
Any ideas?
I have a form with a vba programmed button. It has been working fine for a while, but I came to use it today and it came up with the following:
Run-time error '2046':
The command or action 'Copy' isn't available now.
The only thing I have changed is that I have added a bit of tried & tested "timer" code around the original code - but I can't see how that would stop it from working!
The code I have is is a simple, open -> copy -> close:
DoCmd.OpenTable "TblJdeWeeklyDetailTEMP"
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.RunCommand acCmdCopy
DoCmd.Close acTable, "TblJdeWeeklyDetailTEMP"
The error highlights the 3rd line when you run the debug.
Any ideas?