RE: Query Question
- From: "Ofer" <Ofer@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 28 Aug 2005 16:07:01 -0700
Try this
Trim([Address1] & iif([Address2] not is null, ", " & [Address2],"") &
iif([Address3] not is null,", " & [Address3],"") & iif([County] not is
null,", " & [County],"") &
iif([PostCode] not is null, ", " & [PostCode],""))
"ingalla" wrote:
> I have the following query:-
>
> Trim([Address1] & ", " & [Address2] & ", " & [Address3] & ", " & [County] &
> ", " & [Country] & ", " & [PostCode])
>
> However, if any of the fields are blank how can i stop getting two commas
> together? ie if the address3 field is empty.
>
> Address1, Address2,, County, County, PostCode
>
> Thanks
>
> Andy
.
- References:
- Query Question
- From: ingalla
- Query Question
- Prev by Date: Query Question
- Next by Date: Re: Criteria for multiple fields
- Previous by thread: Query Question
- Next by thread: Re: Query Question
- Index(es):
Relevant Pages
|