Hi 
I'm creating a query which pulls together the numerical values of 32 separate fields. Each field has the potential to have a value in it ranging between 1 and 9, but most fields will be blank.
I want to prefix the value (if the value is not null) with a 2 or 3 character-long code relating to the field name.
I then want to combine them all together in a query so I can easily copy and paste the output to a spreadsheet.
Here is what I have so far, with just 9 of the field names, and it's already looking a bit clunky.
The output, unfortunately, is putting spaces between empty fields and I'm not sure how to prevent this in the syntax?
Any ideas? I've attached a screenshot of some of the output...
I'm probably doing this in a really messy way, aren't I?
Any advice appreciated!

I'm creating a query which pulls together the numerical values of 32 separate fields. Each field has the potential to have a value in it ranging between 1 and 9, but most fields will be blank.
I want to prefix the value (if the value is not null) with a 2 or 3 character-long code relating to the field name.
I then want to combine them all together in a query so I can easily copy and paste the output to a spreadsheet.
Here is what I have so far, with just 9 of the field names, and it's already looking a bit clunky.
Code:
IIf(IsNull([zam_adm]),"","ADM\") & [zam_adm] & " " &
IIf(IsNull([zam_cts]),"","CTS\") & [zam_cts] & " " &
IIf(IsNull([zam_crs]),"","CRS\") & [zam_crs]& " " &
IIf(IsNull([zam_IPB]),"","IPB\") & [zam_IPB]& " " &
IIf(IsNull([zam_opr]),"","OPR\") & [zam_opr]& " " &
IIf(IsNull([zam_owl]),"","OWL\") & [zam_owl]& " " &
IIf(IsNull([zam_pmi]),"","PMI\") & [zam_pmi]& " " &
IIf(IsNull([zam_wl]),"","WL\") & [zam_wl]& " " &
IIf(IsNull([zam_sgt]),"","SGT\") & [zam_sgt]
The output, unfortunately, is putting spaces between empty fields and I'm not sure how to prevent this in the syntax?
Any ideas? I've attached a screenshot of some of the output...
I'm probably doing this in a really messy way, aren't I?

Any advice appreciated!