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!

Calculated column format

Status
Not open for further replies.

SimonPGreen

IS-IT--Management
Mar 8, 2004
116
GB
Hi,

Have a calculated column for VAT that I am opening in a Datasheet. Is it possible to format this to currency i.e. round to two decimal places, show £ and .00 at the end even if integer?

Regards,

Simon
 
Yes, have a look at the FORMATCURRENCY function.

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Alex,

Thanks - unfortunately my first post was wrong - I am displaying the results of a query. Not displaying a form in datasheet view.

It appears that formatcurrency is not a function supported in Jet SQL?

Regads,

Simon
 
What version of access are you using? Formatcurrency works fine for me (2k3).

Here's how it is called:

Code:
FormatCurrency(Expression, DecimalPlaces)

Where decimalplaces is an integer of course.

Hope this helps,

Alex

Ignorance of certain subjects is a great part of wisdom
 
Alex,

Apologies - I was using CurrencyFormat() :)

Thanks for the post.

Simon
 
Hehe, that'll get ya every time ;-)

Glad it helped :)

Ignorance of certain subjects is a great part of wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top