C
CJM
A colleague is having a problem automating a Paste Append operation.
He tried using the following code:
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
Forms![Data Input]![SafetyOff] = "Y"
DoCmd.RunCommand acCmdRecordsGoToNew
Call AllEnable
DoEvents
DoCmd.RunCommand acCmdPasteAppend
But it raised errors (ie put records in a Paste Errors table)
He tried a manual cut & paste which worked.
So then he tried 'automating' the manual operation using Sendkeys, but that
didnt work either.
Any thoughts? I'm not an Access whizz myself so I thought I'd ask you guys.
Let me know if you need more info...
Cheers
Chris
He tried using the following code:
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdCopy
Forms![Data Input]![SafetyOff] = "Y"
DoCmd.RunCommand acCmdRecordsGoToNew
Call AllEnable
DoEvents
DoCmd.RunCommand acCmdPasteAppend
But it raised errors (ie put records in a Paste Errors table)
He tried a manual cut & paste which worked.
So then he tried 'automating' the manual operation using Sendkeys, but that
didnt work either.
Any thoughts? I'm not an Access whizz myself so I thought I'd ask you guys.
Let me know if you need more info...
Cheers
Chris