473,830 Members | 2,199 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Validation rules stops the user from going forward.

jinalpatel
68 New Member
I have two tables Mainfirm and Subfirm. I have everything ready. Now I am entering validation rules like as below in my form fields to protect the tables from bad data. But when I try to enter something wrong, it gives me error and it sticks to that error message,. It does not let me go forward.
Is Null OR Not Like "*[!a-z]*"
Is Null OR Not Like "*[!0-9]*"
Is Null OR Not Like "*[!((a-z) or (0-9))]*"
Also, I tried to enter validation rules to the table itself instead of each and every form fields. Still the same.

Please help...It is driving me nuts!!
Aug 13 '08 #1
7 2212
missinglinq
3,532 Recognized Expert Specialist
I think we need to get a couple of things straight before we begin here.

"it gives me error and it sticks to that error message,. It does not let me go forward"

What exactly do you mean by this? Does it not let you attempt to correct your incorrect entry in the textbox?

"Is Null OR Not Like "*[!a-z]*""

Exactly what type of data do you expect this Validation rule to allow?

Linq ;0)>
Aug 13 '08 #2
jinalpatel
68 New Member
I think we need to get a couple of things straight before we begin here.

"it gives me error and it sticks to that error message,. It does not let me go forward"

What exactly do you mean by this? Does it not let you attempt to correct your incorrect entry in the textbox?

"Is Null OR Not Like "*[!a-z]*""

Exactly what type of data do you expect this Validation rule to allow?

Linq ;0)>


Ya
I have several textboxes for data entry. Like License number, Firmname,addres s,city etc.I am using "Is Null OR Not Like "*[!a-z]*"" validationrule for my FirmName. Now supoose I try to edit the existing data and by mistake I type any number like 4 instead of any character like A to Z.
I get an error message(which is my validationtext) "Please enter valid Firmname." Now if I click "OK" on this message and retype in FirmName textbox. It again gives me the same error message as I just listed. The same is keep going untill I quit the application itself.

I tried to put the validation rules and validationtext on both
1)Form
2) Tables itself.
But none of them seemed to be working

Please help
Aug 14 '08 #3
missinglinq
3,532 Recognized Expert Specialist
I don't know what to tell you. The validation rule is correct for what you're trying to do. I used it without problem, both n the table as well as in the form, and jsut for kicks I tried it in both! When placing it in both and entering data thru the form, the form's Validation is the one that prevails; I know this because I varied the Validation text between the table and form. HAve you tested the other fields that have validations in place? Do all these fields fail or have you just tested the FirnName field?

Linq ;0)>
Aug 14 '08 #4
jinalpatel
68 New Member
I don't know what to tell you. The validation rule is correct for what you're trying to do. I used it without problem, both n the table as well as in the form, and jsut for kicks I tried it in both! When placing it in both and entering data thru the form, the form's Validation is the one that prevails; I know this because I varied the Validation text between the table and form. HAve you tested the other fields that have validations in place? Do all these fields fail or have you just tested the FirnName field?

Linq ;0)>
Thankf for your help.
I was doing one silly mistake of entering space. Now I changed my validation rules to "Like "*[a-z]*" Or Like "?"" and it is working perfectly. I worked on this problem almost 3-4 days..and see I was doing just one mistake..
Thanks for your help
Thanks much.
Aug 15 '08 #5
missinglinq
3,532 Recognized Expert Specialist
Don't mean to upset your apple cart, but you do realize by adding the "?" that you can actually enter anything now, letters, special characters and numbers! You essentially have no validation at all.

Every attempt I make to include spaces, including using the ASCII designation, results in the same thing. But to be perfectly frank, I dodn't really understand the need to exclude numbers from the FirmName field; there are many companies, today, whose names do include numbers.

Linq ;0)>
Aug 15 '08 #6
jinalpatel
68 New Member
Don't mean to upset your apple cart, but you do realize by adding the "?" that you can actually enter anything now, letters, special characters and numbers! You essentially have no validation at all.

Every attempt I make to include spaces, including using the ASCII designation, results in the same thing. But to be perfectly frank, I dodn't really understand the need to exclude numbers from the FirmName field; there are many companies, today, whose names do include numbers.

Linq ;0)>
Firmname is just an example from many other fields. I have Person's name,county,cit y etc.
Can you tell me how can I be specific to only space and not any other characters regarding first paragraph of ur reply. It will be too helpful if you can suggest me the validationrule that only accepts alphabets from a to z and white space.

Thanks for pointing out.
Aug 15 '08 #7
I am having the same issue as jinalpatel.
When I enter in something that does not follow the Validation rule I get the error message which is correct and what I would like however when I try to correct the error the msg will not allow me to do so.
any suggestions?
Nov 10 '10 #8

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

Similar topics

21
3931
by: Stefan Richter | last post by:
Hi, after coding for days on stupid form validations - Like: strings (min / max length), numbers(min / max value), money(min / max value), postcodes(min / max value), telefon numbers, email adresses and so on. I thought it might be a better way to programm an automated, dynamic form validation that works for all kinds of fields, shows the necessary error messages and highlights the coresponding form fields.
41
1248
by: CMAR | last post by:
What are the pluses and minuses of constructing and validating between XHTML Transitional vs. HTLM 4.01 Strict Thanks, CMA
67
5366
by: Scott Meyers | last post by:
I have a web site that, due to maintenance by several people, some of whom are fairly clueless about HTML and CSS, etc. (notably me), has gotten to the point where I'm pretty sure it's suffering from bit rot. Though the pages seem to display okay under IE and FF, I really think it's time for an under-the-hood cleaning. I recently received a copy of Molly Holzschlag's "Spring Into HTML and CSS," and in the first chapter, she makes a big...
2
1977
by: Stephen | last post by:
Hey everyone, I am trying to run some validation on the on-click event of a button to check and see whether a datagrid contains any rows inserted into it and if it does then I'd like it to work as normal. However if it has no items in it then i'd like it to display the error message below and not move forward. Here is the code I have but it doesn't seem to work. I think i've got the wrong logic. Can someone help me work this out. Thanks ...
5
3196
by: Jeremy | last post by:
I have a vb .net 2003 app that uses access 2k as a backend. The main table has some validation rules (legacy stuff brought forward inadvertantly, and now we're stuck with 'em). The problem is, I do a dataadaptor.update, and an exception is thrown. I would prefer to validate before the update & tell the user to fix the data. dataset.hasErrors does not detect the validation violation. When the exception is thrown I can of course catch...
10
5733
by: gweasel | last post by:
What is the best way to apply a Validation Rule - or rather, where is the best place to put it? Is there an advantage to putting it on the field in the table vs setting the validation rule on the form the control is on? Basically I have a number of controls in a form that are required, and to check it I am setting the Validation Rule to "<>"IsNull" so that when the user tries to tab through/click out of a required area without entering...
7
3626
ak1dnar
by: ak1dnar | last post by:
Hi, I got this scripts from this URL There is Error when i submit the form. Line: 54 Error: 'document.getElementbyID(....)' is null or not an object What is this error. Complete Files
3
1796
by: Phil Latio | last post by:
I am designing a relatively simple CMS with the usual Item, Category and User scenario. My question here relates to how I implement the User registration on this application. Currently I have the following: register.php classes/class.Form.php classes/class.Validation.php classes/class.User.php classes/class.MySQL.php templates/register.tpl.php
3
3674
by: Water Cooler v2 | last post by:
Sorry for asking this beginner question. I've written DTDs so far and read about XML Schemas. I understand that they are a replacement of the DTD fundamentally, and therefore allow for the validation of an XML document. My question really is: Why do we need XML Schemas other than for validation of an XML document? I am more interested in knowing if already available
0
10489
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10525
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10202
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9314
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7746
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5617
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5780
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4411
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3959
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.