I have a table I am working with structed like so:
All are text fields.
FieldA FieldB FieldC FieldD FieldE etc...
112 X X X
113 X
114 X X
115 X X X
I would like for this to be concatenated into 1 field, wether FieldB, FieldC, FieldD or FieldE are null or not. I can get this to semi-sorta work with expr: [FieldB]& "," & [FieldC]& "," & [FieldD] & "," in a select query, but all I get is X,,,X, or X,X,X,, or ,,X,X or what have you. I sure hope this makes sense!! I would like for it to work off of a horizontal "isnotnull" thing AND not show the comma if one or more of the fields is null.
Can do this is a select query or module and use the query to call the code in the module?? Oh yeah - I will need some examples as well!!!
Thank you in advanced!!
All are text fields.
FieldA FieldB FieldC FieldD FieldE etc...
112 X X X
113 X
114 X X
115 X X X
I would like for this to be concatenated into 1 field, wether FieldB, FieldC, FieldD or FieldE are null or not. I can get this to semi-sorta work with expr: [FieldB]& "," & [FieldC]& "," & [FieldD] & "," in a select query, but all I get is X,,,X, or X,X,X,, or ,,X,X or what have you. I sure hope this makes sense!! I would like for it to work off of a horizontal "isnotnull" thing AND not show the comma if one or more of the fields is null.
Can do this is a select query or module and use the query to call the code in the module?? Oh yeah - I will need some examples as well!!!
Thank you in advanced!!