Jul 1, 2003 #1 Caryisms Technical User Joined Oct 17, 2001 Messages 132 Location US How do I write an expression for a text box in a form that will allow a conditional statement based on another field. ie. If Field 1 = "Primary", then this text box = [Field 2] & " " & [Field 3] Thanks!
How do I write an expression for a text box in a form that will allow a conditional statement based on another field. ie. If Field 1 = "Primary", then this text box = [Field 2] & " " & [Field 3] Thanks!
Jul 1, 2003 #2 deduct Programmer Joined Jul 5, 2002 Messages 78 Location US Syntax: IIf («expr», «truepart», «falsepart») set control source of the textbox (this is off top of my head, so will probably need tweeking): =Iif ([Field 1] = "Primary",[Field 2] & " " & [Field 3]," " In this example it inserts a space if [Field 1] is not = "Primary" Karl Upvote 0 Downvote
Syntax: IIf («expr», «truepart», «falsepart») set control source of the textbox (this is off top of my head, so will probably need tweeking): =Iif ([Field 1] = "Primary",[Field 2] & " " & [Field 3]," " In this example it inserts a space if [Field 1] is not = "Primary" Karl