I have a number pad on screen using VBA Access 2003 with Sql Server
I click one of the buttons and a number appears in the text box.Hit a button again and the next number appends to the first and so on. This works with no problem.
The client doesn't want a decimal button. So if i hit a "1" button and "2" button
"12" appears in the textbox
Under the click of a "Process" button I want the "12" ....to be read as 0.12
Other examples of numbers in the textbox
123 -> 1.23
1 -> 0.01
123454 - 1234.54
I have been fooling around with the Format currency function but it not giving me what I want
txtNumber.SetFocus
lnTender = Format(txtNumber.Text, "Currency")
Any help or insight would be much appreciated.
Start Free Trial