Hi fredg,
I had it on zero, and I had it set to 6.5. This data is through the SQL
Server to another database maintained by another company. This is a different
sort of problem. This is what I discovered and what I emailed to the person
maintaining the other database and his response.
Hi Mike,
I was pulling my hair out (as usual) trying to get the company name (Comp)
lined up in the center of the top of a report I am creating. The source of
the data is (his database). Some of the company names were centered, but some
were over to the left.
After trying everything that I could with Access, I discovered that the
titles that wouldn't center were not centered in (his database). There were
spaces behind them in the Company Name field. If I place my cursor at the end
of the company name and press delete for a while, this removes these extra
spaces. This is a time-consuming thing. Is there any way you can remove the
extra spaces behind the Company names?
His answer was: There is no way to guarantee that there will never be spaces
in the name so you are going to have to find an Access method to remove the
spaces in your report.
So, the question is is there a way to remove these spaces in the report,
since this is not my table that I maintain? Thanks
So the control is a text control, not a label control.
Size the text control as previously suggested.
Instead of having the control source set to [Comp], set the control
source to:
=Trim([Comp])
Make sure the NAME of this control is NOT "Comp". If it is, just
change the name to something else, i.e. "txtComp".
The Trim function removes all preceding and trailing spaces.
Look up Trim, LTrim, and RTrim in VBA help.