T
Thomas
I need to know how to use the value of a table field in a
If...Then...Else... statement. I'm using an expression to
merge data from several fields into one field. I'm also
using character codes to place data on separate lines
(e.g. [Field6] = [Field1] & Chr(13) & Chr(10) & _
[Field2] & Chr(13) & Chr(10) & _
[Field3] & Chr(13) & Chr(10) & _
[Field4] & Chr(13) & Chr(10) & _
[Field5])
Towards the end of the form that I'm using, I have one
field, and then two groups of about 3-4 fields. I need to
be able to have the value of the one field determine which
of the two groups is actually used in the expression.
(e.g. [Field6] = [Field1] & Chr(13) & Chr(10) & _
[Field2] & Chr(13) & Chr(10) & _
[Field3] & Chr(13) & Chr(10) & _
[Field4] & Chr(13) & Chr(10) & _
If [Field5] = OptionOne Then & _
[Field6] & [Field7] & [Field8] & _
Else [Field9] & [Field10] & [Field11])
I've actually tried excatly what I did for the example
above, and it didn't work.
If...Then...Else... statement. I'm using an expression to
merge data from several fields into one field. I'm also
using character codes to place data on separate lines
(e.g. [Field6] = [Field1] & Chr(13) & Chr(10) & _
[Field2] & Chr(13) & Chr(10) & _
[Field3] & Chr(13) & Chr(10) & _
[Field4] & Chr(13) & Chr(10) & _
[Field5])
Towards the end of the form that I'm using, I have one
field, and then two groups of about 3-4 fields. I need to
be able to have the value of the one field determine which
of the two groups is actually used in the expression.
(e.g. [Field6] = [Field1] & Chr(13) & Chr(10) & _
[Field2] & Chr(13) & Chr(10) & _
[Field3] & Chr(13) & Chr(10) & _
[Field4] & Chr(13) & Chr(10) & _
If [Field5] = OptionOne Then & _
[Field6] & [Field7] & [Field8] & _
Else [Field9] & [Field10] & [Field11])
I've actually tried excatly what I did for the example
above, and it didn't work.