Solved

What is causing code to run?

Posted on 2014-11-13
4
130 Views
Last Modified: 2014-11-30
PROBLEM
When I click the Reports menu button and then press enter code begins to run and the screen flashes?

When I click the Events menu button and then press enter code begins to run and I am redirected to the Incident screen?

I am not sure how to correct this problem or what caused it?
RC-Ver-15.zip
0
Comment
Question by:cssc1
  • 2
4 Comments
 
LVL 61

Expert Comment

by:mbizup
Comment Utility
Are you referring to the Reports and Events buttons in the menu running across the top of the form?

By "press enter", do you mean hitting the Enter key on your keyboard?

I am not experiencing the problem you are describing using the sample database you uploaded.

It could be an issue with specific data in your copy of the database.

Or it could be an issue with my understanding of the issue  (possibly for others too, considering how long this question has gone unanswered).  Perhaps posting screenshots might help.
0
 

Author Comment

by:cssc1
Comment Utility
Sorry for my poor description.

Yes, I mean hitting the Enter key on the key board.

Yes, the Reports and Events buttons in the menu running across the top of the form.
0
 
LVL 39

Accepted Solution

by:
als315 earned 500 total points
Comment Utility
When you press menu button, specific button become active (you can see dashed line around this button). Enter key press this button again and macro from this button is started again. In reports all forms are closed and main form is reopened, so you see screen flash. In events after clicking active becomes button "Incidents", so enter run macro from "Incidents" button. You can play wit default events for enter or, for example, add dummy button and move focus to in the end of your macro. Look at sample for reports button
RC-Ver-15.zip
0
 

Author Closing Comment

by:cssc1
Comment Utility
thanks
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
In the article entitled Working with Objects – Part 1 (http://www.experts-exchange.com/Microsoft/Development/MS_Access/A_4942-Working-with-Objects-Part-1.html), you learned the basics of working with objects, properties, methods, and events. In Work…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

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

6 Experts available now in Live!

Get 1:1 Help Now