Convert Currency (Or Number) Into Words

lhooker

Registered User.
Local time
Yesterday, 22:08
Joined
Dec 30, 2005
Messages
431
Is it possible to convert a number (whether in the "Standard" or "Currency" format) into words ? :o
 
JDraw,

I tried the suggested function (as instructed) and it worked in the
"Debug" window, but after saving the function as "ConvertCurrencyToEnglish",
it failed (when using it in a form). The textboxes are defined as follows:


Textboxes
Check_Amount - ("Currency" format)
Check_Amount_Word (No value selected)


Below is the contents of "Event" in "After Update" of the "Check_Amount"
textbox

=ConvertCurrencyToEnglish([Check_Amount_Word])

I'm getting "Run-time error '94': Invalid use of Null. What is the problem ?
 
According to the link you could place that value in the control source of the text box

(he uses Northwind as example)
Code:
Open the Orders form in Design view and add a text box to the form. Set the text box's ControlSource property as follows:
=ConvertCurrencyToEnglish([Total])

I created a module with the functions, then took a form I had,
added a text box, updated the control source as suggested and it works fine.
see attached jpg.

Using the after update event of the textbox would require some vba.
Can you show readers the code in your afterUpdate event?
 

Attachments

  • NumberToEnglish.jpg
    NumberToEnglish.jpg
    19.9 KB · Views: 236
JDraw/Paul,

I figured out the problem. I saved the module (i.e. "module1") to another name. It's working now. Thanks to the both of you !!!:rolleyes:
 

Users who are viewing this thread

Back
Top Bottom