Applecore Pages on Microsoft Access

Copying data to and from the clipboard

If you want to copy data to and from the clipboard, there are two ways of doing this. If you only want to copy the data from one control, then you can use an Access constant:

Private Sub cmdCopy_Click()
    txtName.SetFocus
    DoCmd.RunCommand acCmdCopy
    Screen.PreviousControl.SetFocus
End Sub

If, however, you want to copy larger amounts of data, for example several controls together, then you will need to use APIs (Application Programming Interface) to do this. These are detailed in the Microsoft Knowledge Base at:

How to Send Information to the Clipboard (7.0, 97)

How to Retrieve Information from the Clipboard (7.0, 97)

Top

 


HOME | NEW | TABLES | QUERIES | FORMS | REPORTS | GENERAL | API | DOWNLOADS | TUTORIAL | RESOURCES
E-MAIL
Copyright & Disclaimer

 

Last modified at 06/06/2006 14:55:44