Hi All,
I am trying to combine two fields into one [RER_Number] from a table in a query using a calulated field and using the expression builder to do so.
I want to combine [RER] and [RER Suffix] but only if [RER Suffix] is not blank and does not equal 0. If [RER Suffix] is blank or does equal 0 then [RER_Number] should just equal [RER].
I have entered in the field row in the table of the query design view:
RER_Number: IIf([RER Suffix]<>"",IIf([RER Suffix]="0",[RER],[RER] & "/" & [RER Suffix]),[RER])
I have now been presented with #Error in the [RER_Number] field only when RER_Suffix is not blank.
Is someone able to suggest a better method?
Thanks in advance.
I am trying to combine two fields into one [RER_Number] from a table in a query using a calulated field and using the expression builder to do so.
I want to combine [RER] and [RER Suffix] but only if [RER Suffix] is not blank and does not equal 0. If [RER Suffix] is blank or does equal 0 then [RER_Number] should just equal [RER].
I have entered in the field row in the table of the query design view:
RER_Number: IIf([RER Suffix]<>"",IIf([RER Suffix]="0",[RER],[RER] & "/" & [RER Suffix]),[RER])
I have now been presented with #Error in the [RER_Number] field only when RER_Suffix is not blank.
Is someone able to suggest a better method?
Thanks in advance.