Unisng SendKeys For Make Table Query

G

Guest

I have a make table query that takes about thirty seconds to run. I am trying to create a macro to run the query at a scheduled time. A make table query prompts you three times for a yes no answer. I can use the Sendkeys action to send a Y for a yes response but the query seems to be taking too long to accept the final Y. What can I do to get it to answer the prompts with out any interaction from me.
 
D

Douglas J. Steele

You'd be much better off using VBA rather than a macro: it gives you far
more control.

However, I suspect you're getting the "Do you want to add..." type messages.
To suppress them, SetWarning False before running the query, then True once
it's complete

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)



Chris said:
I have a make table query that takes about thirty seconds to run. I am
trying to create a macro to run the query at a scheduled time. A make table
query prompts you three times for a yes no answer. I can use the Sendkeys
action to send a Y for a yes response but the query seems to be taking too
long to accept the final Y. What can I do to get it to answer the prompts
with out any interaction from me.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top