MS Access Format Function

69
rate or flag this page

By msaccessmemento

In Access, the Format function takes an expression and returns it as a formatted string.

The syntax for the Format function is:

Format ( expression, [ format ] )

expression is the value to format.

format is optional. It is the format to apply to the expression. You can either define your own format or use one of the named formats that Access has predefined.

Examples

Format (210.6, "#,##0.00") would return '210.60'

Format (210.6, "Standard") would return '210.60'

Format (0.981, "Percent") would return '98.10%'

Format (1267.5, "Currency") would return '$1,267.50'

Format (#17/04/2004#, "Short Date") would return '17/04/2004'

Format (#17/04/2004#, "Long Date") would return 'April 17, 2004'

Format (#17/04/2004#, "yyyy/mm/dd") would return '2004/04/17'

Print   —   Rate it:  up  down  flag this hub

Comments

RSS for comments on this Hub

Ala'a  says:
7 months ago

thank

i have a program that have the currency in field and the value in another field.

i want formate as GBP 44,678.00

Submit a Comment

Members and Guests

Sign in or sign up and post using a hubpages account.


optional


  • No HTML is allowed in comments, but URLs will be hyperlinked
  • Comments are not for promoting your hubs or other sites

working