Format Currency Property

ViRi

Registered User.
Local time
Today, 02:14
Joined
Jan 31, 2006
Messages
44
Hi

I have a field on a Form that displays values in Sterling (The Default on the machine) ie with the pound sign before the numbers.

I need to change the sign before the numbers to Dollar at a click of a button. I'm not interested in actually converting the values from Sterling to Dollar but only to change the sign. So I attached the code below to a Button's On Click Event, but I get an error = Expected.

Code:
Format([ControlName] , "$#,##.00")

ViRi
 
Hello

This is a function. You need to set it equal to something as below. Tested Okay

x = Format([Text0], "$#,##.00")

Regards
Mark
 
Hi

I've tried this but it does not seem to work

Code:
Dim X
 X = Format([Text65], "$" & ([Text65].Value)) 'At this point nothing happens other than the assignment
 
 [Text65].Format = X 'With this line added it works intermitently? but it takes away the .00

ViRi
 

Users who are viewing this thread

Back
Top Bottom