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  

Writting an IIF statment as a validation rule



 
 
Thread Tools Display Modes
  #1  
Old June 2nd, 2008, 08:12 PM posted to microsoft.public.access.tablesdbdesign
Rania Kilany
external usenet poster
 
Posts: 1
Default Writting an IIF statment as a validation rule

I have a textbox that perform some calculation, at the control source i wrote
a statmen for calculating the value in this textbox = [value1]-[value2] and
it works

now i want to add a validation rule for this value as if it is lower than a
specific value it changes the color of the box or give me a messege

=IIF([Amount_left] ([Estimation] / 2),"true","false")

i wrote this statment in the validation rule property but it doesn't work, i
don't know what is wrong ?

Thank you

Rania
  #2  
Old June 2nd, 2008, 08:36 PM posted to microsoft.public.access.tablesdbdesign
Duane Hookom
external usenet poster
 
Posts: 7,177
Default Writting an IIF statment as a validation rule

"but it doesn't work, i don't know what is wrong" we don't either since you
didn't provide any sample data, results, or expect results.

You provided some control source for a text box but neglected to provide the
name of the text box.

--
Duane Hookom
Microsoft Access MVP


"Rania Kilany" wrote:

I have a textbox that perform some calculation, at the control source i wrote
a statmen for calculating the value in this textbox = [value1]-[value2] and
it works

now i want to add a validation rule for this value as if it is lower than a
specific value it changes the color of the box or give me a messege

=IIF([Amount_left] ([Estimation] / 2),"true","false")

i wrote this statment in the validation rule property but it doesn't work, i
don't know what is wrong ?

Thank you

Rania

 




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


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