Full Version: Variable Line Height: Field Alignment
UtterAccess Discussion Forums > Microsoft® Access > Access Reports
raintrace
I have a report that has a description field and a currency field on the same line.
If the .cangrow & .canshrink are active on the Description field, how do I get the currency to display at the bottom of the Description field when it goes into 2 or 3 lines?

This is the code that I've tried:
TaskTotal being the field with the currency and ScopeOfWorkTask being the description field (Memo)

Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Detail.Height > TaskTotal.Height Or Len(ScopeOfWorkTask) > 50 Then
TaskTotal.Top = Me.Detail.Height - TaskTotal.Height
Else
TaskTotal.Top = 0
End If

End Sub
projecttoday
Why can't you concatenate the currency field onto the description field, set the texbox as cangrow, and eliminate the code?

Robert Crouser
HiTechCoach
I have had success with this:

Print Lines

I think the code should be able to help you.
raintrace
But I need all the currency figures in line with each other. Can you use Decimal Tabs to put it over on the right hand side of the page and all in allignment.
raintrace
Sorry is the Print Lines a command, as your link doesn't go anywhere and i can't find the command in the Access Help.
HiTechCoach
Sorry about that.

Try this link:
Print Lines
HiTechCoach
Th9s may also help:
Vertical Justification
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.