Solved

Access Form: simple question

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

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

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
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…
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

705 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

18 Experts available now in Live!

Get 1:1 Help Now