A
Andrew Meador
I have a sub-report based on a query. A couple of the fields (being
pulled from a SQL Server Express 2005 back end) are padded with spaces
at the end. I want to trim these spaces off for the report I'm
creating, but I can't figure our where/how to trim these spaces off.
I've tried setting the Control Source for the text boxes on the
report to '=trim(fieldname)', but this causes an error of "This
control has a reference to itself" and the field shows "#Error" when
you open the report in report view.
I've tried creating code for the detail section of the report and
for various events of the text boxes, but have not had success - maybe
I haven't tried the right event? I don't know.
Your input would be appreciated - Thanks!
pulled from a SQL Server Express 2005 back end) are padded with spaces
at the end. I want to trim these spaces off for the report I'm
creating, but I can't figure our where/how to trim these spaces off.
I've tried setting the Control Source for the text boxes on the
report to '=trim(fieldname)', but this causes an error of "This
control has a reference to itself" and the field shows "#Error" when
you open the report in report view.
I've tried creating code for the detail section of the report and
for various events of the text boxes, but have not had success - maybe
I haven't tried the right event? I don't know.
Your input would be appreciated - Thanks!