Run Keyboard Commands?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to run keyboard commands from Access? What I am doing is
opening a program in Access (via Shell command) ... I want to then run
keyboard commands (e.g., ALT + P to print, ALT + X to exit).

Any help is greatly appreciated, thanks.

G
 
SendKeys is something of a last resort because it's hard to be 100%
certain that the keystrokes will be received where you intend them to
be. It's worth checking whether the program you want to use can be
controlled some other way, such as DDE or OLE Automation.
 
Back
Top