Follow Us:

Call us:  (306) 986-8888

Sendkeys

Sendkeys

Oh Sendkeys! Last week we ran into a problem whereby a form we want to open automatically has a bad habit of asking for confirmation due to an embedded webpage active-x object which uses cached credentials.  After many hours trying to find a command line option or other work around, we went back to a simple trick:  use sendkeys to send the {enter} key after a wait of a few seconds (form_timer) on the form load event.  It was surprisingly effective and resolved the problem!

It’s not pretty, and not scale able or secure, BUT for our local database used only by the client, it was a very effective solution.  Now we can automate this report using our reporting software to go automatically, without worrying about that pesky authentication confirmation prompt.  Sometimes the old cliche of KISS still works and should be considered.

Now we’re off to pick another VBA battle to fight!

admin