A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Database Design
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Validation Rule



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2005, 11:05 AM
Tru
external usenet poster
 
Posts: n/a
Default Validation Rule

What is the Validation Rule for a Null Value in a table, because I am trying
to eliminate Access's confusing error message and create a simpler Validation
Text Error Message.
--
Thanx!
  #2  
Old February 15th, 2005, 01:57 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Tru

Not sure I understand the context of your reference to "the Validation Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value for a
field that has its "Required" property set to "Yes", you have violated the
definition of the table. A few obvious solutions are to make the field not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I am

trying
to eliminate Access's confusing error message and create a simpler

Validation
Text Error Message.
--
Thanx!


  #3  
Old February 15th, 2005, 03:05 PM
Tru
external usenet poster
 
Posts: n/a
Default

I want the field required but I do not like the error message Access displays
when the field is null. I just want to be able to display my own error
message in the validation text property. That's why I need to know what to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the Validation Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value for a
field that has its "Required" property set to "Yes", you have violated the
definition of the table. A few obvious solutions are to make the field not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I am

trying
to eliminate Access's confusing error message and create a simpler

Validation
Text Error Message.
--
Thanx!



  #4  
Old February 16th, 2005, 02:50 AM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Tru

I suppose you could try Not Null (but I'm not sure if Access checks it's own
internal table properties before checking the Validation rule ...

Worth a test, no?

Jeff Boyce
Access MVP


"Tru" wrote in message
...
I want the field required but I do not like the error message Access

displays
when the field is null. I just want to be able to display my own error
message in the validation text property. That's why I need to know what

to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the Validation

Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value for a
field that has its "Required" property set to "Yes", you have violated

the
definition of the table. A few obvious solutions are to make the field

not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I am

trying
to eliminate Access's confusing error message and create a simpler

Validation
Text Error Message.
--
Thanx!




  #5  
Old February 16th, 2005, 10:41 AM
Tru
external usenet poster
 
Posts: n/a
Default

Yeah I tried "Is Not Null" I still receive the standard error message. You
know the standard error message would not be that bad it it did not include
the table name and the table field name.

Jeff, thanx for taking time out to try and help me out.

"Jeff Boyce" wrote:

Tru

I suppose you could try Not Null (but I'm not sure if Access checks it's own
internal table properties before checking the Validation rule ...

Worth a test, no?

Jeff Boyce
Access MVP


"Tru" wrote in message
...
I want the field required but I do not like the error message Access

displays
when the field is null. I just want to be able to display my own error
message in the validation text property. That's why I need to know what

to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the Validation

Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value for a
field that has its "Required" property set to "Yes", you have violated

the
definition of the table. A few obvious solutions are to make the field

not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I am
trying
to eliminate Access's confusing error message and create a simpler
Validation
Text Error Message.
--
Thanx!




  #6  
Old February 16th, 2005, 03:02 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Hmmm...? What if you added a check in the BeforeUpdate event of the control
on your form? You could test for Null and cancel the update of that
(table's) field...

Jeff Boyce
Access MVP

"Tru" wrote in message
news
Yeah I tried "Is Not Null" I still receive the standard error message.

You
know the standard error message would not be that bad it it did not

include
the table name and the table field name.

Jeff, thanx for taking time out to try and help me out.

"Jeff Boyce" wrote:

Tru

I suppose you could try Not Null (but I'm not sure if Access checks it's

own
internal table properties before checking the Validation rule ...

Worth a test, no?

Jeff Boyce
Access MVP


"Tru" wrote in message
...
I want the field required but I do not like the error message Access

displays
when the field is null. I just want to be able to display my own

error
message in the validation text property. That's why I need to know

what
to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the

Validation
Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value

for a
field that has its "Required" property set to "Yes", you have

violated
the
definition of the table. A few obvious solutions are to make the

field
not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I

am
trying
to eliminate Access's confusing error message and create a simpler
Validation
Text Error Message.
--
Thanx!





  #7  
Old February 19th, 2005, 04:31 PM
Tru
external usenet poster
 
Posts: n/a
Default

Jeff I finally figured it out would you believe all you have to do is change
the Required from yes to no, put "Is Not Null" in Validation Rule and it
will recognize your Validation Text.

"Jeff Boyce" wrote:

Hmmm...? What if you added a check in the BeforeUpdate event of the control
on your form? You could test for Null and cancel the update of that
(table's) field...

Jeff Boyce
Access MVP

"Tru" wrote in message
news
Yeah I tried "Is Not Null" I still receive the standard error message.

You
know the standard error message would not be that bad it it did not

include
the table name and the table field name.

Jeff, thanx for taking time out to try and help me out.

"Jeff Boyce" wrote:

Tru

I suppose you could try Not Null (but I'm not sure if Access checks it's

own
internal table properties before checking the Validation rule ...

Worth a test, no?

Jeff Boyce
Access MVP


"Tru" wrote in message
...
I want the field required but I do not like the error message Access
displays
when the field is null. I just want to be able to display my own

error
message in the validation text property. That's why I need to know

what
to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the

Validation
Rule
for a Null Value". When are you seeing the related error message?

If you try to enter a new row/record and have not provided a value

for a
field that has its "Required" property set to "Yes", you have

violated
the
definition of the table. A few obvious solutions are to make the

field
not
required, put something in it, or also change the "Allow Zero-Length
Strings" property to "Yes" (but this one adds other complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table, because I

am
trying
to eliminate Access's confusing error message and create a simpler
Validation
Text Error Message.
--
Thanx!






  #8  
Old February 19th, 2005, 05:47 PM
Jeff Boyce
external usenet poster
 
Posts: n/a
Default

Tru

I made the (erroneous) assumption that you HAD to have this field required.
Glad you found a solution!

Jeff

"Tru" wrote in message
...
Jeff I finally figured it out would you believe all you have to do is

change
the Required from yes to no, put "Is Not Null" in Validation Rule and it
will recognize your Validation Text.

"Jeff Boyce" wrote:

Hmmm...? What if you added a check in the BeforeUpdate event of the

control
on your form? You could test for Null and cancel the update of that
(table's) field...

Jeff Boyce
Access MVP

"Tru" wrote in message
news
Yeah I tried "Is Not Null" I still receive the standard error message.

You
know the standard error message would not be that bad it it did not

include
the table name and the table field name.

Jeff, thanx for taking time out to try and help me out.

"Jeff Boyce" wrote:

Tru

I suppose you could try Not Null (but I'm not sure if Access checks

it's
own
internal table properties before checking the Validation rule ...

Worth a test, no?

Jeff Boyce
Access MVP


"Tru" wrote in message
...
I want the field required but I do not like the error message

Access
displays
when the field is null. I just want to be able to display my own

error
message in the validation text property. That's why I need to

know
what
to
indicate in the Validation Rule to check for Null values.

"Jeff Boyce" wrote:

Tru

Not sure I understand the context of your reference to "the

Validation
Rule
for a Null Value". When are you seeing the related error

message?

If you try to enter a new row/record and have not provided a

value
for a
field that has its "Required" property set to "Yes", you have

violated
the
definition of the table. A few obvious solutions are to make

the
field
not
required, put something in it, or also change the "Allow

Zero-Length
Strings" property to "Yes" (but this one adds other

complications).

--
Good luck

Jeff Boyce
Access MVP

"Tru" wrote in message
...
What is the Validation Rule for a Null Value in a table,

because I
am
trying
to eliminate Access's confusing error message and create a

simpler
Validation
Text Error Message.
--
Thanx!







 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Rule Somecallmejosh Using Forms 2 December 29th, 2004 08:43 PM
Fw: Validation rule problem Geo Using Forms 0 September 14th, 2004 08:38 AM
rule validation in access Peter Corley General Discussion 1 September 10th, 2004 02:31 AM
Validation Rule Shark General Discussion 2 July 28th, 2004 04:39 PM
Validation Rule question Lori Using Forms 1 July 20th, 2004 06:32 PM


All times are GMT +1. The time now is 04:04 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.