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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Validation is not working on Combo



 
 
Thread Tools Display Modes
  #1  
Old July 7th, 2004, 06:46 PM
Ruth
external usenet poster
 
Posts: n/a
Default Validation is not working on Combo

THis appears to be like a previous problem but I would
like to know if it can be solved without writing code.

Form control is Combo Box.
It is filling a number field into a table.
Source has 3 columns (LName, FirstName, ID) and bound
column is 3.
It is limited to list. There are no default values.
I want to validate that something was chosen.(anything-
that is, don't leave it blank)
When I try to put a validation rule of "is not null" I
expected to have it reject but it doesn't.
When I put in += 0" as the rule, it does not reject a non-
choice.

I can't get it to work on the Table level either!
I could only cause a reject if I said the Field in table
was required, but that message is too generic and will not
be understood by the User.
Help!
  #2  
Old July 8th, 2004, 12:46 AM
Steve Schapel
external usenet poster
 
Posts: n/a
Default Validation is not working on Combo

Ruth,

I also would expect a Validation Rule of Is Not Null to result in a
"rejection". I think you realise that such a rejection only happens at
the point you are trying to commit the record, not at the point where
you leave the combobox? And your statement about no default values
applies to the field definition in the table as well as the form control?

--
Steve Schapel, Microsoft Access MVP


Ruth wrote:
THis appears to be like a previous problem but I would
like to know if it can be solved without writing code.

Form control is Combo Box.
It is filling a number field into a table.
Source has 3 columns (LName, FirstName, ID) and bound
column is 3.
It is limited to list. There are no default values.
I want to validate that something was chosen.(anything-
that is, don't leave it blank)
When I try to put a validation rule of "is not null" I
expected to have it reject but it doesn't.
When I put in += 0" as the rule, it does not reject a non-
choice.

I can't get it to work on the Table level either!
I could only cause a reject if I said the Field in table
was required, but that message is too generic and will not
be understood by the User.
Help!

  #3  
Old July 9th, 2004, 07:14 PM
external usenet poster
 
Posts: n/a
Default Validation is not working on Combo

Thanks for your reply. the answers a

I also would expect a Validation Rule of Is Not Null to

result in a "rejection". I think you realise that such a
rejection only happens at the point you are trying to
commit the record, not at the point where you leave the
combobox?
Yes.

And your statement about no default values applies to the

field definition in the table as well as the form control?

Yes! So is this a bug?
Ruth
--
Steve Schapel, Microsoft Access MVP


Ruth wrote:
THis appears to be like a previous problem but I would
like to know if it can be solved without writing code.

Form control is Combo Box.
It is filling a number field into a table.
Source has 3 columns (LName, FirstName, ID) and bound
column is 3.
It is limited to list. There are no default values.
I want to validate that something was chosen.(anything-
that is, don't leave it blank)
When I try to put a validation rule of "is not null" I
expected to have it reject but it doesn't.
When I put in += 0" as the rule, it does not reject a

non-
choice.

I can't get it to work on the Table level either!
I could only cause a reject if I said the Field in

table
was required, but that message is too generic and will

not
be understood by the User.
Help!

.

  #4  
Old July 9th, 2004, 08:29 PM
Steve Schapel
external usenet poster
 
Posts: n/a
Default Validation is not working on Combo

Ruth,

No, it's not a bug. I am sure there is a perfectly rational
explanation, which needs to be tracked down. What happens if you try to
enter a record directly into the table, with nothing entered into this
field? No validation message? And the record is saved, with the field
blank? If so, do you get the same thing if you make a new table, and
try the same in there?

--
Steve Schapel, Microsoft Access MVP


wrote:
Thanks for your reply. the answers a


I also would expect a Validation Rule of Is Not Null to


result in a "rejection". I think you realise that such a
rejection only happens at the point you are trying to
commit the record, not at the point where you leave the
combobox?
Yes.


And your statement about no default values applies to the


field definition in the table as well as the form control?

Yes! So is this a bug?
Ruth

--
Steve Schapel, Microsoft Access MVP

 




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
Autofilter not working for cells with data validation Freddo Frog General Discussion 1 June 22nd, 2004 04:25 PM
Validation, not working. Nimit Mehta Worksheet Functions 2 June 7th, 2004 03:48 PM
Combo Box Problem Charles Using Forms 0 May 28th, 2004 09:15 PM


All times are GMT +1. The time now is 06: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.