Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text box alignment problem

Status
Not open for further replies.

TJones8

Technical User
Apr 16, 2002
77
GB
Hi - I have a report which pulls an item description and it's cost from a table. At the moment, the tops of the two text fields are on the same level.
Since the item description can be multi-lined, it sometimes looks odd.
Is there a way to force the bottom of the single-line text box to align itself with the bottom of a 'CanGrow' text field??

TIA

Tim Jones if at first you don't succeed, get a 10lb lump hammer
 
I have tried setting the text box control's 'Top' property in the Detail_Print event of the report with this bit of code
Code:
txtQuantity.Properties!Top = txtItemDesc.Properties!Top + (txtItemDesc.Properties!Height - txtQuantity.Properties!Height)
but i get a run-time error 2101 'The setting you entered isn't valid for this property.'

I'm not sure what i'm doing wrong here -other than when the controls come to be printed\print previwed, the controls properties are set to read-only.

I will try the same code in Detail_Format event, but i don't think the txtItemDesc grows to it's multi-lined content before format. if at first you don't succeed, get a 10lb lump hammer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top