S
Scott
I have been trying to put calculated fields into a query to create a name
field that can then be used in reports, forms, etc. I have a similar problem
when I create address fields. The problem is that I get balled up in "Iif"
possibilities so it doesn't put line feeds, commas, spaces, etc. into the
name/address if there is a null field.
I presume there is a way to do this that is easier than what I do. Can you
help? Thanks.
ex. I have prefix, fname, mname, lname and suffix. If I didn't have to
worry about null fields, I could just put in prefix & " " & fname & " " &
mname & " " & lname & ", " & suffix. However, because it is possible that
there is a fname and lname only, I don't want the name to have all the spaces
and the comma for the suffix. And it is also possible to have a prefix and
lname only, or a fame, lname and suffix, etc. I end up having to create an
"Iif" clause for each scenario.
field that can then be used in reports, forms, etc. I have a similar problem
when I create address fields. The problem is that I get balled up in "Iif"
possibilities so it doesn't put line feeds, commas, spaces, etc. into the
name/address if there is a null field.
I presume there is a way to do this that is easier than what I do. Can you
help? Thanks.
ex. I have prefix, fname, mname, lname and suffix. If I didn't have to
worry about null fields, I could just put in prefix & " " & fname & " " &
mname & " " & lname & ", " & suffix. However, because it is possible that
there is a fname and lname only, I don't want the name to have all the spaces
and the comma for the suffix. And it is also possible to have a prefix and
lname only, or a fame, lname and suffix, etc. I end up having to create an
"Iif" clause for each scenario.