G
Guest
Hi,
What do I need to do to this string so that when it runs as part of an SQL
(feeding a query) it returns the query data in this format €5,000 (as a
number - right aligned)??
Here's the string:
rev_calc = "(sum([tbl_Union_Sales].[Final_Revenue]) AS [Revenue €],"
If I use the format function it treats it as text and left aligns but I
still want it right aligned. I've also tried putting '+1-1' (old Excel trick
to convert to a number) after the format function and this converts it back
to a left aligned number but loses the formatting!?!?
NOTE - I'm trying to change the formatting of a query field, not a form field.
Surely I just need to convert it to a currency - something like "€ #,##0"
but this seems easier said than done!!?
Any help would be greatly appreciated!!
Many thanks.
What do I need to do to this string so that when it runs as part of an SQL
(feeding a query) it returns the query data in this format €5,000 (as a
number - right aligned)??
Here's the string:
rev_calc = "(sum([tbl_Union_Sales].[Final_Revenue]) AS [Revenue €],"
If I use the format function it treats it as text and left aligns but I
still want it right aligned. I've also tried putting '+1-1' (old Excel trick
to convert to a number) after the format function and this converts it back
to a left aligned number but loses the formatting!?!?
NOTE - I'm trying to change the formatting of a query field, not a form field.
Surely I just need to convert it to a currency - something like "€ #,##0"
but this seems easier said than done!!?
Any help would be greatly appreciated!!
Many thanks.