ACC: Wait Argument in SendKeys May Not Stop Macro Processing (95449)
The information in this article applies to:
- Microsoft Access 1.0
- Microsoft Access 1.1
- Microsoft Access 2.0
This article was previously published under Q95449 SYMPTOMS
Advanced: Requires expert coding, interoperability, and multiuser skills.
When a macro calls the SendKeys action with the Wait parameter set to Yes,
the macro will continue before the program that processed the keystrokes
has finished performing the action that it was called to do.
RESOLUTION
To work around this behavior, have the macro call an Access Basic function
or procedure that checks to see if the other application is finished. To
correct the situation described above, you can do the following:
Macro Action
------------
RunApp - Start Microsoft Excel
SendKeys - Start the macro
RunCode - Call a module that continues checking until
the file exists
TransferSpreadsheet - Import the spreadsheet
Modification Type: | Major | Last Reviewed: | 5/9/2003 |
---|
Keywords: | kbprb kbusage KB95449 |
---|
|