dbTalk Databases Forums  

Validation Rule in MS Access XP

comp.database.ms-access comp.database.ms-access


Discuss Validation Rule in MS Access XP in the comp.database.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Sarai (Offline)
Junior Member
 
Posts: 1
Join Date: Jul 2006

Default Validation Rule in MS Access XP - 07-14-2006 , 02:14 PM






Im trying to put in the Validation rule for the date field like [Delivered Date]<[Received Date] but it comes out like a syntax error and something to do with the columns.

Reply With Quote
  #2  
Old   
Ira Solomon
 
Posts: n/a

Default Re: Validation Rule in MS Access XP - 07-15-2006 , 02:16 PM






In the actual table def you can only use patterns or constants for the
validaton rule. It just won't work if you try to used field names.

You have 2 options.
You can set a validation rule in code. You would just have to run the
code once. A sample of the code is in the help file. Just press F1
while the curser in validation and you will find the code in the last
example.

Or

If you are using a form you can use the afterupdate event to check for
a valid condition.

Good luck

Ira Solomon

On Fri, 14 Jul 2006 14:14:58 -0500, Sarai
<Sarai.2ayb9z (AT) no-mx (DOT) forums.yourdomain.com.au> wrote:

Quote:
Im trying to put in the Validation rule for the date field like
[Delivered Date]<[Received Date] but it comes out like a syntax error
and something to do with the columns.

Reply With Quote
Reply




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 On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.