C
c9ola
I have 2 independent fields on a form:
A (Date)
B (TextO
The value of both of these together will determine the value of "C," a text
box. I need an "if" statement but how does that work in the Rules section
of a text box? BTW . . . field "C" is read-only and can not be changed by a
user.
Example:
If A = "Life" then
If B between 1/1/2008 and 3/31/2008 then
C = "1Q 2008"
else if B between 4/1/2008 and 7/31/2008 then
C = "2Q 2008" ......................
else if A = "CCC" then
If B between 1/1/2008 and 2/29/2008 then
C = "1Q 2008"
else if B between 3/1/2008 and 6/30/2008 then
C = "2Q 2008"
end if
end if
If there's a better way to do this, I'm open for that as well, but the
bottom line is - where and how do you write a rule that will take both A and
B into account and then assign a value to C? Hope this makes sense. Thank
you.
A (Date)
B (TextO
The value of both of these together will determine the value of "C," a text
box. I need an "if" statement but how does that work in the Rules section
of a text box? BTW . . . field "C" is read-only and can not be changed by a
user.
Example:
If A = "Life" then
If B between 1/1/2008 and 3/31/2008 then
C = "1Q 2008"
else if B between 4/1/2008 and 7/31/2008 then
C = "2Q 2008" ......................
else if A = "CCC" then
If B between 1/1/2008 and 2/29/2008 then
C = "1Q 2008"
else if B between 3/1/2008 and 6/30/2008 then
C = "2Q 2008"
end if
end if
If there's a better way to do this, I'm open for that as well, but the
bottom line is - where and how do you write a rule that will take both A and
B into account and then assign a value to C? Hope this makes sense. Thank
you.