Hi Bill,
You can use a calculated expression in the query grid. This should work
fine:
TitleExp: iif(len(CatSystemVal & "") > 0,[Title] & ", " & [CatSystem] &
[CatSystemVal],[Title])
You can also enter this expression (preceded by "=") directly into a textbox
control on a form or report. If you do that, you must ensure that the name
of the textbox control itself is not the same as the name of any of the
fields in the form's/report's recordsource.
HTH,
Rob
> Ordinarily, I would put field expression code in the
> OnFormat_Detail event section. However, if it's possible
[quoted text clipped - 26 lines]
> Thanks,
> Bill
Bill - 11 Nov 2007 00:12 GMT
"If you do that, you must ensure that the name of the textbox
control itself is not the same as the name of any of the fields
in the form's/report's recordsource."
AMEN, I've been there before.
TitleExp: iif(len(CatSystemVal & "") > 0,[Title] & ", " & [CatSystem] &
[CatSystemVal],[Title])
worked great. I see in the results that some of the "Title" fields have some
extraneous blanks on the end of the field, so I modified your code to:
TitleExp: iif(len(CatSystemVal & "") > 0,Trim([Title]) & ", " & [CatSystem]
& [CatSystemVal],[Title])
Thanks,
Bill
> Hi Bill,
>
[quoted text clipped - 42 lines]
>> Thanks,
>> Bill