Hello there,
It's been a while since I have been here, but here goes....
Cobverting our service database from Access to Access 2010 and there has been a few hurtles in the code (i.e., loss of calendar control - solved, Utility.MDS - still in flux, etc) and now this:
I have a convenience field showing a serial number. The user simply had to double click in the field to copy the serial number to the windows clip board. In Access 2000, here is the code that worked brilliently (probably got it from here):
Me.SerialNum.SetFocus
SendKeys "{End}" & "+{Home}", True
Sleep (500)
DoCmd.DoMenuItem acFormBar, acEditMenu, acCopy, , acMenuVer70
The sendkeys still works fine, the data in the field "SerialNum" gets highlighted.
But when the DoCmd line executes, I get the error:
"Runtime error '2046': The command or action 'Copy' isn't available now"
Any ideas?

It's been a while since I have been here, but here goes....
Cobverting our service database from Access to Access 2010 and there has been a few hurtles in the code (i.e., loss of calendar control - solved, Utility.MDS - still in flux, etc) and now this:
I have a convenience field showing a serial number. The user simply had to double click in the field to copy the serial number to the windows clip board. In Access 2000, here is the code that worked brilliently (probably got it from here):
Me.SerialNum.SetFocus
SendKeys "{End}" & "+{Home}", True
Sleep (500)
DoCmd.DoMenuItem acFormBar, acEditMenu, acCopy, , acMenuVer70
The sendkeys still works fine, the data in the field "SerialNum" gets highlighted.
But when the DoCmd line executes, I get the error:
"Runtime error '2046': The command or action 'Copy' isn't available now"
Any ideas?