Dec 23, 2009 #1 priac Technical User Joined Feb 8, 2002 Messages 47 Location US I am new and having a problem with something that should be simple. I have a query that returns a time to a form. =Sum([Expr1]) I want to tell an unbound text box to show 40 if the =Sum([Expr1]) is => than 40.
I am new and having a problem with something that should be simple. I have a query that returns a time to a form. =Sum([Expr1]) I want to tell an unbound text box to show 40 if the =Sum([Expr1]) is => than 40.
Dec 23, 2009 #2 dhookom Programmer Joined Jun 24, 2003 Messages 22,561 Location US Probably something like: Code: =IIf(Sum([Expr1])> 40 , 40, Sum([Expr1])) Duane Hook'D on Access MS Access MVP Upvote 0 Downvote
Probably something like: Code: =IIf(Sum([Expr1])> 40 , 40, Sum([Expr1])) Duane Hook'D on Access MS Access MVP
Dec 23, 2009 #3 TheAceMan1 Programmer Joined Sep 23, 2003 Messages 11,174 Location US Should'nt that be: Code: [blue]=IIf(Sum([Expr1])>[purple][b]=[/b][/purple] 40 , 40, Sum([Expr1]))[/blue] See Ya! . . . . . . Be sure to see thread181-473997 [blue]Worthy Reading![/blue] Also faq181-2886 [blue]Worthy Reading![/blue] Upvote 0 Downvote
Should'nt that be: Code: [blue]=IIf(Sum([Expr1])>[purple][b]=[/b][/purple] 40 , 40, Sum([Expr1]))[/blue] See Ya! . . . . . . Be sure to see thread181-473997 [blue]Worthy Reading![/blue] Also faq181-2886 [blue]Worthy Reading![/blue]
Dec 23, 2009 #4 dhookom Programmer Joined Jun 24, 2003 Messages 22,561 Location US You could use the = but the results would be exactly the same. Duane Hook'D on Access MS Access MVP Upvote 0 Downvote