Solved

Access Form: simple question

Posted on 2013-06-25
3
390 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 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
With Microsoft Access, learn how to specify relationships between tables and set various options on the relationship. Add the tables: Create the relationship: Decide if you’re going to set referential integrity: Decide if you want cascade upda…
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…

756 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