How do I set up the following Validation Rules in a table:
1. Two chars - both must be digits(0-9)
2. Three characters - first character must be a letter
3. 6 characters - all must be digits(0-9)
4. Up to 8 digits(0-9)
5. Up to 25 characters
Thanks,
Tom 7 3751
Tom wrote: How do I set up the following Validation Rules in a table:
1. Two chars - both must be digits(0-9)
2. Three characters - first character must be a letter
3. 6 characters - all must be digits(0-9)
4. Up to 8 digits(0-9)
5. Up to 25 characters
Thanks,
Tom
Do you have 5 separate fields, or are they all part of the same?
You use "0" (zero) to represent a number, and "L" to represent a letter.
For example:
(1) 00
(2) LLL
(3) 000000
You can also use a < at the beginning to force characters to uppercase,
and > for lower.
--
James
James,
Thank you very much for the quick response!!
There are five separate fields.
1. Do you enter the validation rules inside quotes, e.g. "00" ?
2. How do I do 4 and 5?
Thanks,
Tom
"James Arnold" <arnold11@arnold[eleven].karoo.co.uk> wrote in message
news:42***********************@authen.white.readfr eenews.net... Tom wrote: How do I set up the following Validation Rules in a table:
1. Two chars - both must be digits(0-9)
2. Three characters - first character must be a letter
3. 6 characters - all must be digits(0-9)
4. Up to 8 digits(0-9)
5. Up to 25 characters
Thanks,
Tom
Do you have 5 separate fields, or are they all part of the same? You use "0" (zero) to represent a number, and "L" to represent a letter. For example:
(1) 00 (2) LLL (3) 000000
You can also use a < at the beginning to force characters to uppercase, and > for lower.
-- James
Tom wrote: James,
Thank you very much for the quick response!!
There are five separate fields.
1. Do you enter the validation rules inside quotes, e.g. "00" ?
No quotes are needed.
2. How do I do 4 and 5?
(4) 00000000
(5) If it is UP TO 25 (ie can be less) I would recommend setting the
field size to 25, as the input mask would require all 25 characters.
--
James
#4 is Up to 8 digits(0-9). Wouldn't 00000000 mean 8 digits are required?
<< as the input mask would require all 25 characters>>
Did you mean Validation Rule and not "input mask"?
Thanks,
Tom
"James Arnold" <arnold11@arnold[eleven].karoo.co.uk> wrote in message
news:42***********************@authen.white.readfr eenews.net... Tom wrote: James,
Thank you very much for the quick response!!
There are five separate fields.
1. Do you enter the validation rules inside quotes, e.g. "00" ?
No quotes are needed.
2. How do I do 4 and 5?
(4) 00000000 (5) If it is UP TO 25 (ie can be less) I would recommend setting the
field size to 25, as the input mask would require all 25 characters.
-- James
Tom wrote: #4 is Up to 8 digits(0-9). Wouldn't 00000000 mean 8 digits are required?
Sorry - yes it would require all 8 digits. I would set the field size to
8, and then enter code on the textbox on the form. For example, on the
keypress event:
If Not IsNumeric(KeyAscii) Then KeyAscii = 0
<< as the input mask would require all 25 characters>> Did you mean Validation Rule and not "input mask"?
Sorry! Validation rule would require all 25 characters. I believe an
input mask would also require all 25 if you did L x 25, but you can give
it a go and see - it may not?
--
James
On Thu, 11 Aug 2005 11:07:56 GMT, "Tom" <no***@email.com> wrote: How do I set up the following Validation Rules in a table:
Hmmm. Sounds like homework. Did you read Access "help" for validation
rules?
1. When I type in 00, Access reduces it to 0. How do I keep 00?
2. You suggested LLL for (2). The last two characters can be digits or
letters. How do I do that?
Tom
"James Arnold" <arnold11@arnold[eleven].karoo.co.uk> wrote in message
news:42***********************@authen.white.readfr eenews.net... Tom wrote:
#4 is Up to 8 digits(0-9). Wouldn't 00000000 mean 8 digits are required?
Sorry - yes it would require all 8 digits. I would set the field size to 8, and then enter code on the textbox on the form. For example, on the keypress event:
If Not IsNumeric(KeyAscii) Then KeyAscii = 0
<< as the input mask would require all 25 characters>> Did you mean Validation Rule and not "input mask"?
Sorry! Validation rule would require all 25 characters. I believe an input mask would also require all 25 if you did L x 25, but you can give it a go and see - it may not?
-- James This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
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...
|
by: Mike |
last post by:
Note: My XML experience to date has (unfortunately) been limited to reading
and thinking, rather than implementation.
Anyway, I am in the process of trying to figure out the most efficient way...
|
by: Mike |
last post by:
Related to another topic I just posted, I wanted to discuss ways to optimize
the validation of very large (>100MB) XML documents.
First, I have no idea if something like this already exists; it...
|
by: wumingshi |
last post by:
Hi,
When validating an XML instance, sometimes the schema is not enough to
expression the validation rules. Additional validation rules may be
expressed in an application-specific way. For...
|
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...
|
by: Bob Alston |
last post by:
I have a routine to copy data to new versions of my app via insert into
sql statements. Unfortunately, due to evolution of my app, sometimes
the new version has more restrictive editing than an...
|
by: info |
last post by:
Hi,
Is it possible to include in the Schema validation file, every custom
error message for each validation rules? This mean, in the same xsd
file we can have the validation rules (patterns)...
|
by: peev2001 |
last post by:
Hi every body,
I have some basic queries regarding validation of data entered by different users:
I have a form from where the users are going to enter the data. I have tried to put some...
|
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...
|
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
|
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...
|
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,...
|
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...
|
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...
|
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...
|
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: 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: 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...
|
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 ...
| |