B
BillA
I've read other feeds on this subject and I'm unable to fix my problem.
I've developed a query with a field that concatenates multiple fields,
excludes empty strings with Null and introduces carriage returns.
Contatenation and carriage returns work, but my Null doesn't (I want all
fields to move up if a field is empty).
This is what I have so far:
Address: ([tbl_Investigator]![Position] & Chr(13)+Chr(10) &
[tbl_Investigator]![Address] &
IIf(IsNull([tbl_Investigator]![Address]),Null,(Chr(13)+Chr(10)) &
[tbl_Investigator]![Address2] &
IIf(IsNull([tbl_Investigator]![Address2]),Null,Chr(13) & Chr(10)) &
[tbl_Investigator]![City] & ", " & [tbl_Investigator]![State] & " " &
[tbl_Investigator]![Zip]))
I would also like to introduce a null for the very first field (Position),
so if the string is empty all the other fields would move up.
Any advice would be greatly be appreciated.
I've developed a query with a field that concatenates multiple fields,
excludes empty strings with Null and introduces carriage returns.
Contatenation and carriage returns work, but my Null doesn't (I want all
fields to move up if a field is empty).
This is what I have so far:
Address: ([tbl_Investigator]![Position] & Chr(13)+Chr(10) &
[tbl_Investigator]![Address] &
IIf(IsNull([tbl_Investigator]![Address]),Null,(Chr(13)+Chr(10)) &
[tbl_Investigator]![Address2] &
IIf(IsNull([tbl_Investigator]![Address2]),Null,Chr(13) & Chr(10)) &
[tbl_Investigator]![City] & ", " & [tbl_Investigator]![State] & " " &
[tbl_Investigator]![Zip]))
I would also like to introduce a null for the very first field (Position),
so if the string is empty all the other fields would move up.
Any advice would be greatly be appreciated.