L
Larry G-NJ
I wasn’t sure if this belonged in Forms or Reports. Since my question
involves both I decided to put it in the forms section. Please let me know
if I need to repost it in another section.
Is it possible to Concatenate (or its equivalent) and NOT display in an open
form and/or print fields with Null values?
I’m working in A2k.
I need to be able to display in an open form and/or print on a corresponding
report most of the fields in a particular order (with specific separators).
These fields are included in a subform and subreport , which is linked to the
main form/report via [IataID].
The order and fields that must be displayed and/or printed are: (all fields
are in tblIATAMaterial)
1. [UnIDNo] (Text)
2. [ProperShippingName] (Memo)
3. [ClassOrDivison] (Text)
4. [SubsidiaryRisk] (Text)
5. [PackingGroup] (Text)
6. [QuantityAndTypeOfPacking](Memo)
7. [PackingInst](Text)
8. [Authorization](Memo)
1 thru 5 must be separated by a comma “,†and 6,7 and 8 must be separated by
2 forward slashes “//â€
I have the following expression in a query:
Data: [UNorIDno] & " , " & [ProperShippingName] & " , " & [ClassorDivison] &
" , " & [SubsidiaryRisk] & " , " & [PackingGroup] & " // " &
[QuantyAndTypeOfPacking] & " // " & [PackingInst] & " // " & [Authorization]
Which returns something like:
Where there are No Nulls in fields – Everything looks fine:
[UnIDNo], [ProperShippingName] , [ClassOrDivison] ,[ SubsidiaryRisk],
[PackingGroup] // [QuantityAndTypeOfPacking] // [PackingInst]
//[Authorization]
Where there are Nulls in some fields – I need to skip them and display or
print only the fields with the required separator.
This is wrong because of the blank spaces:
[UnIDNo], [ProperShippingName] , [ClassOrDivison] , , [PackingGroup] //
[QuantityAndTypeOfPacking] // //
How can I prevent the unnecessary spaces, commas or slashes when the fields
that should be between them have Null values?
Any help would be greatly appreciated. I’m not exactly new to Access but
very new to constructing code.
If a solution involves code, kingly reply with full details/keystrokes
(where it belongs and exactly what it should look like).
Thanks in advance
Larry G
involves both I decided to put it in the forms section. Please let me know
if I need to repost it in another section.
Is it possible to Concatenate (or its equivalent) and NOT display in an open
form and/or print fields with Null values?
I’m working in A2k.
I need to be able to display in an open form and/or print on a corresponding
report most of the fields in a particular order (with specific separators).
These fields are included in a subform and subreport , which is linked to the
main form/report via [IataID].
The order and fields that must be displayed and/or printed are: (all fields
are in tblIATAMaterial)
1. [UnIDNo] (Text)
2. [ProperShippingName] (Memo)
3. [ClassOrDivison] (Text)
4. [SubsidiaryRisk] (Text)
5. [PackingGroup] (Text)
6. [QuantityAndTypeOfPacking](Memo)
7. [PackingInst](Text)
8. [Authorization](Memo)
1 thru 5 must be separated by a comma “,†and 6,7 and 8 must be separated by
2 forward slashes “//â€
I have the following expression in a query:
Data: [UNorIDno] & " , " & [ProperShippingName] & " , " & [ClassorDivison] &
" , " & [SubsidiaryRisk] & " , " & [PackingGroup] & " // " &
[QuantyAndTypeOfPacking] & " // " & [PackingInst] & " // " & [Authorization]
Which returns something like:
Where there are No Nulls in fields – Everything looks fine:
[UnIDNo], [ProperShippingName] , [ClassOrDivison] ,[ SubsidiaryRisk],
[PackingGroup] // [QuantityAndTypeOfPacking] // [PackingInst]
//[Authorization]
Where there are Nulls in some fields – I need to skip them and display or
print only the fields with the required separator.
This is wrong because of the blank spaces:
[UnIDNo], [ProperShippingName] , [ClassOrDivison] , , [PackingGroup] //
[QuantityAndTypeOfPacking] // //
How can I prevent the unnecessary spaces, commas or slashes when the fields
that should be between them have Null values?
Any help would be greatly appreciated. I’m not exactly new to Access but
very new to constructing code.
If a solution involves code, kingly reply with full details/keystrokes
(where it belongs and exactly what it should look like).
Thanks in advance
Larry G