Thanks very much Allen
ctda
----- Allen Browne wrote: ----
What you are asking to do is to divide the field by 100 if the user entere
a value with no decimal point. Use the AfterUpdate event of the text box t
search the Text property of the text box for the dot. If not found, divid
by 100
You probably need to do this in lots of text boxes, so paste the functio
below into a general module. Then set the AfterUpdate property of the tex
box named "Amount" to
=MakeCurrency([Amount]
and so on
Function MakeCurrency(txt As TextBox
If IsNumeric(txt.Value) The
If InStr(txt.Text, ".") = 0 The
txt.Value = txt.Value / 10
End I
End I
End Functio
--
Allen Browne - Microsoft MVP. Perth, Western Australia
Tips for Access users -
http://allenbrowne.com/tips.htm
Reply to group, rather than allenbrowne at mvps dot org
ctdak said:
I have a dollar entry field in my accounting-related application. Norma
fast data entry practice calls for entering 5510 for 55.10 (no decima
entered). Is there a way to allow this? Right now my data type is Currenc
and format is Standard, but if you enter 5510 you get 5510.00 instead o
55.10 when leaving the field