Solved

check all values of a row when leaving ACCESS 2003 form

Posted on 2013-01-07
3
272 Views
Last Modified: 2013-01-07
Is there a simple way to check all the fields of a row when the user leaves no matter which field they are currently on in the row?  That is, if a user clicks in field 3 of a row that has 10 fields, then when they exit that field, I want all the fields of that row validated.  Is this possible?

Sandra
0
Comment
Question by:ssmith94015
  • 2
3 Comments
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
ID: 38751967
Why?

I assume this is for a continuous form?

Normally, you would only do this prior to updating the current record (Form_BeforeUpdate event), not when the user exits each field in the record.

It can be done, accomplished best by developing a function or subroutine and calling that from the LostFocus event of each control on your form, but I would recommend against it, as it can be very annoying to users.  

They develop standard ways of doing things, and if they choose to click between controls on the form, they will not appreciate you forcing them to do things in a particular sequence.
0
 

Author Closing Comment

by:ssmith94015
ID: 38751987
Yes, I want them to do things in a very particular sequence and I figured it would be a function call.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
ID: 38752039
If you make it a function (rather than a subroutine), you can simply type:

=FunctionName()

in the "On Lost Focus" or "On Got Focus" event of the control in the Properties Dialog box.  Actually, you could select all of the controls at once, and make a single entry as above and it will apply to all of the selected controls.  BTW, the function would not have to return a value

If you are adamant that the steps be completed in a very specific sequence, I would recommend using the GotFocus event.
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
data analyst 3 49
DBF to ... Converter 5 38
Access Excel export not behaving 2 25
Access coding 2 0
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

911 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

20 Experts available now in Live!

Get 1:1 Help Now