473,406 Members | 2,867 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Problems with field validation as part of a BeforeUpdate function

We are using an Access database developed by an outside vendor in 2001-2003.

When entering data, the user would click OK on the form and a BeforeUpdate module would run to make sure entries had been made in various fields. If an entry was missing, a message box would appear stating the need to enter data, the user would click OK on the message box and the cursor would be placed on the field of interest.Once all necessary data were entered, the user would click OK, the record would be saved and the form closed.

We have discovered that this process is no longer functional. (This may date back to our transition to Access 2003?) If there are empty fields and the user clicks OK, the message box appears but when the user clicks OK on the message box, the form closes and the record is not saved.

Could this be a compatibility issue between Access 2000 and Access 2003? Something to do with having the field validation as part of a Form BeforeUpdate function with the OK_Click function in the Form code?

Examples of the field validation code, similar code that sort of works as an AfterUpdate function and the OK_Click code are attached. Any help would be greatly appreciated!
Attached Files
File Type: pdf Code Examples.pdf (6.3 KB, 311 views)
Mar 25 '10 #1
1 1351
vb5prgrmr
305 Expert 100+
Place a breakpoint on/in the sub and walk through with F8 to understand what is going on and where it may be failing...



Good Luck
Mar 26 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Mark Morton | last post by:
I'm writing an if statement for a UK credit card form validation script. Users who specify that their card is Switch need to enter either the issue number or the 'valid from' date. I'm trying to...
2
by: Doslil | last post by:
I am trying to validate the fields in my database.I have already validated the fields to check for not null.Here is what I have written for Numeric and text field. Private Function EENUM() On...
10
by: Georges Heinesch | last post by:
Hi. BeforeUpdate code: Me!cboFoo.Text = UCase(Me!cboFoo.Text) I get the error: Run-time error '2115': The macro or function set to the BeforeUpdate or ValidationRule
1
by: Bob Alston | last post by:
On a form I developed, I want to do some cross-field dependencies. If field1 = "xxx" then field2 must be "yyyy" and so forth. Apparently I cannot do that in field properties via the validation as...
1
by: Rolan | last post by:
Having tried various permutations of Before Update and well for that matter, After Update, OnExit, OnEnter, etc. and also Locked controls, I'm still unable to obtain the intended results. There are...
4
by: welie | last post by:
I have a problem canceling a check box update when placing a check in it. Checkbox is not bound. Here is what happens. User clicks a check box. In the BeforeUpdate method of the control, if...
27
by: Kim Webb | last post by:
I have a field on a form for project number. I basically want it to be the next available number (ie 06010 then 06011 etc). In the form I create a text box and under control source I put: =!=...
9
by: sellcraig | last post by:
Microsoft access 2 tables table "data main" contains a field called "code" table "ddw1" is created from a make table query of "data main" Goal- the data in "code" field in needs to...
7
by: JV | last post by:
I am running a large Access 2000 application (installed using Access Runtime) that uses many VB SendKeys, primarily to expand combo boxes On Enter. When trying to run it on Vista I get a...
2
by: Epetruk | last post by:
Hello, I have an ASP.NET page which consists of a button (cmdSave), a label (lblMessage), a text field (txtName) and a custom validator (vldName). vldName is supposed to do both client *and*...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.