Formatting numbers in the qry design grid (1 Viewer)

Andrew Thorpe

Registered User.
Local time
Today, 12:03
Joined
Apr 18, 2009
Messages
59
In the query design grid I'm trying to concatenate a short piece of text with a currency field. It works, but unfortunately the currency then appears with lots of decimal places even though it appears everywhere else with the normal 2. I've tried setting it to 2 in the Properties formatting box, but that didn't work. Does anyone know an expression to force the formatting to remain at 2 decimal places. Thanks.
 

MarkK

bit cruncher
Local time
Today, 04:03
Joined
Mar 17, 2004
Messages
8,187
What about something like...
Code:
SELECT txtField & Round(curField, 2) As NewField
FROM ...
 

bob fitz

AWF VIP
Local time
Today, 12:03
Joined
May 23, 2011
Messages
4,726
Maybe:
Code:
SELECT "YourText  " & Format([YourField],"Currency") AS Result
FROM YourTable;
 

Users who are viewing this thread

Top Bottom