Data Type: Format- Currency (1 Viewer)

Dave32

Registered User.
Local time
Today, 01:19
Joined
Jul 23, 2008
Messages
14
All,

I cannot change the currency to display as $'s. In the drop down box in Access, I can only choose £ and Euro's.

Can anyone help?

Dave32
 

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 20:19
Joined
Feb 19, 2002
Messages
43,275
When you use the named formats, they use the Windows system defined defaults. You would need to use the Format() function to format with a $. Or, add a format to the control in the form since the Format() function will convert a numeric field to text.
 

Dave32

Registered User.
Local time
Today, 01:19
Joined
Jul 23, 2008
Messages
14
Pat,

Can you explain the syntax for the Format() function and where do I put this formula?

Dave32
 

jasminecameron

New member
Local time
Yesterday, 17:19
Joined
Oct 7, 2008
Messages
1
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 .
example;
Format (1267.5, "Currency") would return '$1,267.50'
---------------------
Jasmine



Guaranteed ROI
 

Dave32

Registered User.
Local time
Today, 01:19
Joined
Jul 23, 2008
Messages
14
All,

This morning, I thought I found the solution, I did the following

went to the "Design View" of my table

Selected "Data Type" as "Currency"

went to the "Field Properties" box

In the "Format" cell I put "$#,##0" (yes, remove the speach marks), this is for $ and no decimal places. For 2 d.p try
"$#,##0.00"
.

This works for showing US$ in the table, but does not show US$ in forms or Pivot tables, any ideas on how to solve this further???

Dave32





Thanks Dave32
 
Last edited:

Pat Hartman

Super Moderator
Staff member
Local time
Yesterday, 20:19
Joined
Feb 19, 2002
Messages
43,275
Every place you show the field you need to format it. If you create new objects from the table, the format should carry through but changes to the table will not push out to existing forms/reports.
 

Users who are viewing this thread

Top Bottom