Database Forum
Web Database Register Members List Calendar FAQ

 
Go Back   Database Forum > Other Database Software > Microsoft Access
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Unhappy validation rule -- 2 depending fields
10-02-2007, 12:43 PM #1  

sweetmail
Junior Member

 
Status: Offline
Posts: 1
Join Date: Oct 2007

Hello all,

I have two fields in my table (tblChangeControlFormDetails). OtherRequestor and Requestor.

I want to have only and only one of these two fields to have value. In addition, both fields cannot be Null at the same time. That is, if OtherRequestor have an input, Requestor field should be blank and vice verse.

I did not set any validation rule for OtherRequestor. I try to put a validation rule for Requestor but Access Database was not happy about it. Here are my attempted validation rule

(Is Not Null & [OtherRequestor] = Null) Or Is Null

I have also tried

[OtherRequestor]=Null

Nothing works.

Any help is most appreciated it.

Thanks
Reply With Quote

Default
10-02-2007, 05:43 PM #2  

SusanH
Senior Member

 
Status: Offline
Posts: 115
Join Date: Mar 2005
Location: CA

A statement that will work as well try using only one statement the nz() function:

Requestor: nz([OtherRequestor],[Requestor])

Just a suggestion..
Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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



All times are GMT -5. The time now is 04:55 AM.

Powered by: vBulletin Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Database Forums

Help support our forum assistants and product development ->

go to top go to top