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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Two Fields Aligned in one calculated field a Qry 1

Status
Not open for further replies.

molly

Technical User
Joined
Jul 17, 2000
Messages
219
Location
US
Can you please help me get this Qry calculated field to line up better? I need to have both answers in one field for my Price List. I would like the LB to line up and the price to be right aligned. I presently use the below in the Qry. Thanks

SizePrice: Right([Size],8) & " " & Format(Round(nz([Price]),2),"Fixed")

SizePrice
5 LB 4.56
25 LB 6.12
25 LB 5.15
1 LB 4.51
1 LB 3.75
1 LB 18.53
25 LB 16.50
 
Perhaps this ?
SizePrice: Right(" " & [Size],8) & Right(" " & Format(Round(Nz([Price],0),2),"Fixed"),10)

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks again PHV. I slightly modified your code. only a tad. It will do. A lot better than what i had.

SizePrice: Right(" " & [Size],6) & Right(" " & Format(Round(Nz([Price],0),2),"Fixed"),8)

Here is what i get now in my crosstab. Not bad. Better than a 2 value crosstab or pivot table for this instance.

Attached is a BMP file showing that most of the data lines up. Molly

 
 http://www.savefile.com/files/1698893
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top