R
Rob Hofkens
Hello everyone ![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have a problem with a textbox not showing the value according to the
format property.
I have a simple sample just to show you my problem.
Create a new form put a "Test" textbox in it and set the Format property to
"Currency".
Open the form and type 100 and press enter and you will see the textbox
change it's display to $ 100.00 or in my case ? 100,00.
This is ok and that is what I want.
My problem:
I want to change the value after it's entered.
As a simple sample I am going to multiply the entered value by 10.
To do this I use this code:
Private Sub Test_AfterUpdate()
Me![Test] = Str(Val(Me![Test]) * 10)
End Sub
Now when I open the form and enter 100 I get the right result 1000 but it
doesn't show as $ 1000.00 or in my case as ? 1000,00.
What can I do to show it according the format property ?
Thanks in advance.
Rob.
I have a problem with a textbox not showing the value according to the
format property.
I have a simple sample just to show you my problem.
Create a new form put a "Test" textbox in it and set the Format property to
"Currency".
Open the form and type 100 and press enter and you will see the textbox
change it's display to $ 100.00 or in my case ? 100,00.
This is ok and that is what I want.
My problem:
I want to change the value after it's entered.
As a simple sample I am going to multiply the entered value by 10.
To do this I use this code:
Private Sub Test_AfterUpdate()
Me![Test] = Str(Val(Me![Test]) * 10)
End Sub
Now when I open the form and enter 100 I get the right result 1000 but it
doesn't show as $ 1000.00 or in my case as ? 1000,00.
What can I do to show it according the format property ?
Thanks in advance.
Rob.