|
-
Apr 8th, 2007, 01:53 AM
#1
Thread Starter
Addicted Member
number to word
Dear friends,
I have a function for converting number to word for netamt.
function name is num_to_word.
How to call the function in a form(while calculating netamt).Please guide me.
-
Apr 8th, 2007, 02:04 AM
#2
Re: number to word
Can you post your function?
-
Apr 8th, 2007, 02:59 AM
#3
Re: number to word
vb Code:
num_to_word(this_is_the_number_parameter_I_pass)
'Eg.
MsgBox num_to_word(14)
(a guess without seeing your Function)
-
Apr 8th, 2007, 03:43 AM
#4
Re: number to word
If the function is in a module, you want to declare it Public:
Code:
Public Function num_to_word( ... ) As String
-
Apr 8th, 2007, 05:14 AM
#5
Thread Starter
Addicted Member
Re: number to word
Thanks for your mail.
I want to call num_to_word function in select function.
How to call funtion in a select query?
suppose net_amt column.
select num_to_word(val(net_amt)) ........gives error
-
Apr 8th, 2007, 06:27 AM
#6
Re: number to word
Assuming that you mean a Select query (SQL), you can't - you can only use functions that the database provides.
You will need to run the function against the recordset fields (as part of your display process) instead.
-
Apr 8th, 2007, 06:45 AM
#7
Re: number to word
Or have an index table in the database that can give the wanted results, ie.
Code:
SELECT a.id, b.word FROM amounts a, words b WHERE b.word_id = a.net_amt
word_id in this sample would link a certain number to certain word. The words table would be very simple, having only word_id and word columns in the table.
-
Apr 8th, 2007, 10:48 AM
#8
Fanatic Member
Re: number to word
A number to word? I have that program below...
Alpha Micro: Alpha Basic, AS400 V5r2, EDI (Trusted Link/ Inovis.com),Access AS/400 via VB6, Qbasic for data conversions. A mix of Hardware too. ASCII Table , New Number to Words/66 digits , AS/400(v5r2) VB6 Viewer/Ask for code(ODBC) ^ What Is Transferring? , Check your Ports #Perfect Passwords , *Slide Bar Example , Logoff, Restart, Shut-Down PC *Keep Form On Top , Opaque Form ^ Create Objects at Run Time @ Check Key Caps Locks # GetTickCount(System Up Time) * Convert text to Excel & Collected Icons + Resize: Form/Text box ^ PC GateWay via Shell $ Drag & Drop Game ! PopUpMenu *Print File/no Open# Timer on Mult Forms ~ Splash & Mult Forms & Lots of Comments + Random/Timer/Guess * Dec >Hex >Oct >Bin % Get MAC (NIC) < saving to Registry > Wookiee Cookies \ BackUpDisk / World Conection SpeedTest $ Glossary Commonly Used Terms # phonetic list @ Detailed Computer Scan
When posting Code, Use tags.. [CODE] *Your Code* [/CODE]
-
Apr 8th, 2007, 03:35 PM
#9
Re: number to word
 Originally Posted by sessi4ml
A number to word? I have that program below...
So where is it?
-
Apr 8th, 2007, 05:05 PM
#10
Fanatic Member
Re: number to word
?
My links.... Number to Words/66 digits
Alpha Micro: Alpha Basic, AS400 V5r2, EDI (Trusted Link/ Inovis.com),Access AS/400 via VB6, Qbasic for data conversions. A mix of Hardware too. ASCII Table , New Number to Words/66 digits , AS/400(v5r2) VB6 Viewer/Ask for code(ODBC) ^ What Is Transferring? , Check your Ports #Perfect Passwords , *Slide Bar Example , Logoff, Restart, Shut-Down PC *Keep Form On Top , Opaque Form ^ Create Objects at Run Time @ Check Key Caps Locks # GetTickCount(System Up Time) * Convert text to Excel & Collected Icons + Resize: Form/Text box ^ PC GateWay via Shell $ Drag & Drop Game ! PopUpMenu *Print File/no Open# Timer on Mult Forms ~ Splash & Mult Forms & Lots of Comments + Random/Timer/Guess * Dec >Hex >Oct >Bin % Get MAC (NIC) < saving to Registry > Wookiee Cookies \ BackUpDisk / World Conection SpeedTest $ Glossary Commonly Used Terms # phonetic list @ Detailed Computer Scan
When posting Code, Use tags.. [CODE] *Your Code* [/CODE]
-
Apr 8th, 2007, 07:16 PM
#11
Re: number to word
Ah, if it's in your signature then I don't see anybody's sigs... Sorry.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|