Solved

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

Posted on 2012-12-28
3
775 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
  • 2
3 Comments
 
LVL 77

Accepted Solution

by:
peter57r earned 500 total points
Comment Utility
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
Comment Utility
That was it, thanks
0
 

Author Closing Comment

by:fasteddie565
Comment Utility
Quick and easy. Thanks Peter57r
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

763 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

Need Help in Real-Time?

Connect with top rated Experts

5 Experts available now in Live!

Get 1:1 Help Now