Sendkeys

Comments

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!

Related Posts

Access 2016 Relationships

Short blog today, this is a great read on relationships in Access 2016: Access 2016 Relationships Thanks to Microsoft for this one!

Microsoft Access Union Query from Hell. Skill Level: Demi-God

The worst query I ever had to write which powers a master report for the database user.  Here it is.  I don't think I can make it smaller, there were too many weird rules, aggregates, and translations in it.  And we needed to pull different columns based on criteria. ...

0 Comments

0 Comments