ACC: How to Send the Contents of a Control with SendKeys (95455)



The information in this article applies to:

  • Microsoft Access 1.0
  • Microsoft Access 1.1
  • Microsoft Access 2.0
  • Microsoft Access for Windows 95 7.0
  • Microsoft Access 97

This article was previously published under Q95455
Moderate: Requires basic macro, coding, and interoperability skills.

SUMMARY

To specify the contents of a control or a field in the SendKeys action argument, you must precede the control or the field name with an equal sign (=) in the Keystrokes argument.

MORE INFORMATION

The following example will perform a SendKeys action and send the contents of Field0 as the argument to the action.

   Action      Keystrokes
   -------------------------------
   SendKeys    =Forms!Form1!Field0
				

Modification Type:MajorLast Reviewed:5/9/2003
Keywords:kbhowto kbusage KB95455