473,394 Members | 1,829 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,394 software developers and data experts.

Determine which field in table triggered error 3314 or 3317 (required property=yes)

15
Hello,
I would like to have data validation at table level.

Let's assume that field's property "Required" is set to "yes" (error 3314) or data validation rule is "Is Not Null" (error 3317) and a table has multiple field, which cannot be null:
txtField_1
txtField_2
...
txtField_n

How can I determine which field triggered error 3314/3317 so that it is possible to display message box saying "Fill in field 1" or "Fill in field n" and afterwards set focus on that field if all the fields trigger the same error code without info, which field is null.

Thank you for any suggestions.
Dec 13 '14 #1
1 1851
twinnyfo
3,653 Expert Mod 2GB
There should also be a property in your Table for "Validation Text" which is the message that will pop up if someone enters an invalid entry. Your message can be tailored to the field to which it applies.
Dec 13 '14 #2

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

Similar topics

3
by: LineVoltageHalogen | last post by:
Greeting All, I have a stored proc that dynamically truncates all the tables in my databases. I use a cursor and some dynamic sql for this: ...... create cursor Loop through sysobjects and...
0
by: Sam Vanderstraeten | last post by:
Hi, - VB.NET - Visual Studio 2002 - 2 Solutions - Next errormessages in tasklist: ---------------------------- C:\Inetpub\wwwroot\myProject\BlahBlah.vb(92): Reference required to assembly...
0
by: itmanager | last post by:
We have an ASP.NET (1.1) app running on a Windows 2003 server using IIS 6. Part of the application accesses printer resources on the server using a service application written in VB.NET and C++. ...
1
by: manali1 | last post by:
I get a error Run time error 424 object required while writing a VBA script in MS access
11
by: dougmeece | last post by:
Good Morning Experts, I spent all weekend working on this and got absolutely no where. I have a database with an input form that runs an append query to append to a table. Form Name: ...
4
by: JimCarlson | last post by:
I have a form where the user selects the type of time off they wish to request. It is defined as follows: Control Source: Time Off Type (data type is Text and field size =1) Row Source Type: ...
3
by: santhanalakshmi | last post by:
Hi, I need vertical scroll bar in my form.So i added this code in my existing code.I taken this code from the net. picWindow.Left = 0(In this line i am facing an error Run-time error...
2
by: Alex Anuncio | last post by:
Good day to all, may i ask for a help? I got 10 tables on my Access database like Agent, Order, OrderDetails etc and i got this script which transfer data from local sender to our Main...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.