Replacing Blank Data with Text

  • Thread starter Thread starter Gilbert Noetzel
  • Start date Start date
G

Gilbert Noetzel

People -

I am having a mental block..and I need your help. Does the below
'expression' will work when you have the following data field:

Data Field = Country

Blank = United States
Non-Blanks = 'listed countries'

I wrote this expression and all the data in the column 'country' comes
out blank:

Country: IIf([CMCTRY]=" ","United States")

Above did not work..why?

Gil
 
Generally, one blank (or, space(1)) doesn't occur in tables because
everything is trimmed. Try
Country: IIf([CMCTRY]="","United States","Im something else")
or, Country: IIf(IsNull([CMCTRY]),"United States","Im something else")
 
both of you are correct..on the Country: IIf(IsNull(.....

Why am I so backwards!

thank you ...and have a great weekend.

gil
Generally, one blank (or, space(1)) doesn't occur in tables because
everything is trimmed. Try
Country: IIf([CMCTRY]="","United States","Im something else")
or, Country: IIf(IsNull([CMCTRY]),"United States","Im something else")



:

People -

I am having a mental block..and I need your help. Does the below
'expression' will work when you have the following data field:

Data Field = Country

Blank = United States
Non-Blanks = 'listed countries'

I wrote this expression and all the data in the column 'country' comes
out blank:

Country: IIf([CMCTRY]=" ","United States")

Above did not work..why?

Gil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top