Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Input SendKeys in a MS Access 2007 Macro to press the enter key

Posted on 2012-12-28
3
Medium Priority
?
868 Views
Last Modified: 2012-12-28
Good Morning,
I have a macro that runs several queries, to initially update a table based on user input and then add the records from that table to another table.

The update and append queries generate about 6 requirements to click "Enter" as we are updating and appending tables.  My question(s) is (Are)

What is the best way to make this one smooth operation?

Is there a way to inject the Enter key at the appropriate time? (with some delay built in)
Is there a way to suppress the verification messages so the actions just take place?

Do I need both functions?
0
Comment
Question by:fasteddie565
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 total points
ID: 38727290
To suppress warning messages in action queries, use tha macro action SetWarnings with a No setting - make sure you add another Setwarnings action at the end of the macro to switch them back on again.

You will need to press the Show All Actions button on the ribbon to see the SetWarnings action.
0
 

Author Comment

by:fasteddie565
ID: 38727498
That was it, thanks
0
 

Author Closing Comment

by:fasteddie565
ID: 38727502
Quick and easy. Thanks Peter57r
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Code that checks the QuickBooks schema table for non-updateable fields and then disables those controls on a form so users don't try to update them.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

609 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question