Confused about %d sendkeys [Resolved]
We have an external application which comunicates with Microsft Access.
The exteranal application uses the following commands in a macro
AppActivateLike("Microsoft Access")
AppActivateLikeChild("Microsoft Access", "Clients")
Sendkeys("%d")
I don't understand though is why the %d causes a combo box on the Clients form to get the focus, where is this set?
Is %d a command of some sort, if so how do I change which combo box gets the focus?
Re: Confused about %d sendkeys
Ah have realised that the above means Alt and D, so can cause the combo box to getthe focus when I do this, but where it set that alt d gives that combo box the focus?
As want to change it.
Re: Confused about %d sendkeys
The ALT+D will be the accelerator probably assigned to the label before the Combobox so the focus switches to the combobox when the keys are pressed.
to change focus so it does not target the remove the Ampersand (&) before the "D" (or "d") on the label's caption next to the Combobox. Or alternatively, and if possible, remove the send keys statement from the code in the External application.
Re: Confused about %d sendkeys
Thanks loads. Was looking at the properties of the combo box and not the label.
All makes sense now.
Anyway am happy I know why it works now.