Re: Validation Rule
- From: "SG" <simon.glencross@xxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 29 Nov 2006 20:30:57 -0000
Marshall,
I have checked the fields required porperty to yes and allow zero length
property to no but the problem I seem to have now is its not very user
friendly with regards to the message which is presented to the user when
they forget to complete the field eg The field 'tblcustomers.title' cannot
contain a null value because the required property for this field is set to
true, Enter a value in this field. The system then asks be to close the form
anyway and I select no and get an action failed dialogue message.
Does anyone have any suggestions?
"Marshall Barton" <marshbarton@xxxxxxxxxx> wrote in message
news:prkrm21iccrv7vr2iguitajqblsg93v19u@xxxxxxxxxx
SG wrote:
I have setup a validation rule of Not "" but it still allows the form to
be
saved even though the field has been left empty??
Check the table field's Required property. This prevents
Null values from being saved. I think you want this set to
Yes. This translates to the validation rule Is Not Null.
Check the table field's AllowZeroLength property. This
prevents empty string values from being saved. It sounds
like you want this property set to No. I think this
corresponds to a validation rule similar to <> ""
--
Marsh
MVP [MS Access]
.
- Follow-Ups:
- Re: Validation Rule
- From: Marshall Barton
- Re: Validation Rule
- References:
- Validation Rule
- From: SG
- Re: Validation Rule
- From: Marshall Barton
- Validation Rule
- Prev by Date: Re: check for null in listbox
- Next by Date: Re: Double click on ComboBox
- Previous by thread: Re: Validation Rule
- Next by thread: Re: Validation Rule
- Index(es):
Relevant Pages
|