?
Solved

Access Form: simple question

Posted on 2013-06-25
3
Medium Priority
?
402 Views
Last Modified: 2013-06-25
Dear experts -
I think this is simple, but can't get it to work:
There is no space to squeeze in an invoice number field on a form. Instead, when the user tabs out of the invoice amount field, I put in code in the after update event of the field to invoke a popup where the user can enter the invoice number. This works fine.
However, if the user (intuitively) hits shift-enter (to save) after entering the invoice number, it seems to be simultaneously invoking the popup AND the form before update.
Is there some way to only have the popup appear - i.e., if user tries to save record and invoice number isn't entered, the popup is invoked first?
Thanks!
0
Comment
Question by:terpsichore
[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
3 Comments
 
LVL 48

Accepted Solution

by:
Dale Fye earned 2000 total points
ID: 39276022
You might be able to use the main forms BeforeUpdate event to check for the invoice.  If the Invoice has not been entered, you could call the popup form, enter the invoice # and enter it into the main form.
0
 
LVL 4

Expert Comment

by:LCCSAM
ID: 39276035
What version of MS Access are you using?
I would consider putting the code for the "popup" in the On Lost Focus or On Exit event and see if that works. (On Change may work for you as well)
0
 

Author Closing Comment

by:terpsichore
ID: 39276851
simple solution that gets the job done -
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
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…
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…
Suggested Courses

801 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