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

ID: Q95455


The information in this article applies to:


SUMMARY

Moderate: Requires basic macro, coding, and interoperability skills.

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 

Additional query words: how to


Keywords          : kbusage McrArg 
Version           : 1.0 1.1 2.0 7.0 97
Platform          : WINDOWS 
Issue type        : kbhowto 

Last Reviewed: March 19, 1999