J
John Strung
I have some code that opens Outlook and addresses and e-mail from a button
in Access. All was well and good until we got faster computers and this has
caused a problem with SendKeys firing too soon (yes I know not to use
SendKeys if it can be avoided). I am looking to introduce a short delay
before the SendKeys instructions and I have seen suggested elsewhere on the
web to use:
Application.Wait (Now + TimeValue("0:00:02"))
This was suggested in the context of launching Outlook from Excel, rather
than Acces.
However, when I try this, the code won't compile and I get a "method or data
member not found" error. Is this instruction limited to Excel? Is there a
workaround?
in Access. All was well and good until we got faster computers and this has
caused a problem with SendKeys firing too soon (yes I know not to use
SendKeys if it can be avoided). I am looking to introduce a short delay
before the SendKeys instructions and I have seen suggested elsewhere on the
web to use:
Application.Wait (Now + TimeValue("0:00:02"))
This was suggested in the context of launching Outlook from Excel, rather
than Acces.
However, when I try this, the code won't compile and I get a "method or data
member not found" error. Is this instruction limited to Excel? Is there a
workaround?