Access97 copy/paste error under Virtual PC conditions

E

Emir

Hi friends

The following codelines work fine since years in different PC
configurations - also in a runtime environment.-- but not so under Virtual
PC (VPC2004)
conditions. There is no difference whether it is a Virtual XP / 2000 / ME /
98 machine. The acCmdPaste-command always gives an error 2046 under VPC.
After the error reporting, the records can simply be inserted with Ctrl-V.
Hence they have properly been stored in the clipboard and the fields are
acceptable to the receiving form. Why the hell does it not do it
automatically
without an error?

'Copying the records into the clipboard
DoCmd.OpenForm "SourceForm", acNormal, "", "", acReadOnly, acIcon
DoCmd.RunCommand acCmdSelectAllRecords
DoCmd.RunCommand acCmdCopy
DoCmd.Close acForm, "SourceForm"
'Getting the records into the new location
DoCmd.OpenForm "ReceivingForm", acNormal, "", "", acAdd, acIcon
DoCmd.RunCommand acCmdSelectRecord
DoCmd.RunCommand acCmdPaste 'results an error 2046

It seems the involved clipboard storage is overstretched.

Does anyone have observed similar limitations? Any hint is welcome.
Thanks in advance
Walter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top