Solved

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

Posted on 2012-12-28
3
835 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 500 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In earlier versions of Windows (XP and before), you could drag a database to the taskbar, where it would appear as a taskbar icon to open that database.  This article shows how to recreate this functionality in Windows 7 through 10.
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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