G
Guest
I have been working for days on very complex formating query that I will be
updating a client regularly. I have reached the very end of the project with
only this to figure out.
Here is my delema: In my DB there are 3 fields I must merge into one. They
are:
[r_city] [r_state] [r_zip]
Seemed easy enough so I merged them with an expresion like this:
sql: [r_city] & ", " & [R_STATE] & " " & [R_ZIP] AS ADDR3
design view: ADDR3: [r_city] & ", " & [R_STATE] & " " & [R_ZIP]
The problem is due to the fact that [r_city] is 20 characters long so my
output is:
NASHVILLE , TN 37214 instead of : NASHVILLE, TN 37214 (the
client insists that it comes back with no extra space past the city name)
The other issue is that every line of data gets that comma. I need it to
return nothing if those fields are empty.
Please help.
Jason
updating a client regularly. I have reached the very end of the project with
only this to figure out.
Here is my delema: In my DB there are 3 fields I must merge into one. They
are:
[r_city] [r_state] [r_zip]
Seemed easy enough so I merged them with an expresion like this:
sql: [r_city] & ", " & [R_STATE] & " " & [R_ZIP] AS ADDR3
design view: ADDR3: [r_city] & ", " & [R_STATE] & " " & [R_ZIP]
The problem is due to the fact that [r_city] is 20 characters long so my
output is:
NASHVILLE , TN 37214 instead of : NASHVILLE, TN 37214 (the
client insists that it comes back with no extra space past the city name)
The other issue is that every line of data gets that comma. I need it to
return nothing if those fields are empty.
Please help.
Jason