centering 2 textboxes

  • Thread starter Thread starter Anna
  • Start date Start date
A

Anna

In my report, I have 2 textboxes in the same horizontal
line, whose length will vary depending on the product that
I open the report for. Is there anyway to ensure that
these 2 textboxes will be centered together across the
line, rather than just within the length of the textbox?
Thanks!
 
Anna said:
In my report, I have 2 textboxes in the same horizontal
line, whose length will vary depending on the product that
I open the report for. Is there anyway to ensure that
these 2 textboxes will be centered together across the
line, rather than just within the length of the textbox?

You can use code in the section's Format event procedure to
adjust the position the text boxes (Left property). But
exactly how you would do that depends on exactly what you
mean "centered together".

If you just want the two text box values to run together and
be centered on the line, then you could use a single, wide
text box with an expression that concatenates the two values
together:
=[fieldA] & " " & [fieldB]
 
Back
Top