Results 1 to 15 of 15
  1. #1
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105

    numbers to words

    I need to convert numbers to words in access to print on a check. Can someone help me , I dont know any codes.



    Thanks

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    Thanks. However I need help. What do I do with the code. I assume I create a module, and insert all, but then what else do I need to do, eg in my query.

    Thanks

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Copy/paste the whole bit into a standard module, name the module anything but the names of either function. In a query you'd call it with:

    NewFieldAlias: English(YourCurrencyFieldName)
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    ajetrumpet is offline VIP
    Windows Vista Access 2007
    Join Date
    Mar 2010
    Location
    N/A
    Posts
    2,694
    Quote Originally Posted by pbaldy View Post
    Wow! That's very helpful, Paul. That'd be easy to write, but I didn't even know there was code already written for that. Incredible...

  6. #6
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    Payment Amount: English(Amount)

    That is is the query. I get a pop up response " The expression contains ambiguous name. Verify that each name in the expression refers to a unique object.

    Any help with this please.

  7. #7
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    What did you name the module?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  8. #8
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    GREAT. What happen is that I had some other codes I was trying. I DELETED THEM. THis works great. IS there a way to have it omit the word exactly, but 00/100 or something like that as, it is for printing on a check, and or at least have the first letters in Cap.


    Five hundred 00/00 Right now it shows up as


    five hundred fifty and 05/100


    five hundred fifty exactly

  9. #9
    chavez_sea is offline Competent Performer
    Windows 7 32bit Access 2007
    Join Date
    Feb 2011
    Posts
    105
    THANKS> I got it to work. I changed the letters to CAPS in the code.


    THIS WORKS GREAT!!!. SO grateful for your help.

  10. #10
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You can customize the function to return anything you want. A good exercise would be to set a breakpoint and follow it through step by step so you understand how it works. Then you'll know how to customize it.

    Adam: missed your post. I agree; this is one of many I would classify as not that difficult, but tedious to write.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  11. #11
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Ah, obviously I was typing too slowly. Glad it helped you. Welcome to the site by the way!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  12. #12
    vivien is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    3

    Convert number to words

    Quote Originally Posted by pbaldy View Post
    Everything ok except for the cents; .54 it appears 54/100

  13. #13
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You can modify the function to return the cents any way you want.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  14. #14
    vivien is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    3
    Quote Originally Posted by pbaldy View Post
    You can modify the function to return the cents any way you want.
    Actual I do not know how to write module, I only using access formula to create query. Can you help me on this?

  15. #15
    vivien is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2013
    Posts
    3
    Actually I do not know how to write function, I only using access formula to create query. Can you help me on this?

Please reply to this thread with any new information or opinions.

Similar Threads

  1. numbers
    By Balen in forum Access
    Replies: 1
    Last Post: 08-17-2010, 05:16 PM
  2. Convert numbers to words WITH negatives
    By Alexandre Cote in forum Programming
    Replies: 2
    Last Post: 08-12-2010, 08:38 PM
  3. Textbox, remove certain words.
    By dgrzalja in forum Forms
    Replies: 0
    Last Post: 11-03-2009, 09:42 AM
  4. tags and words in a row
    By bimfire in forum Access
    Replies: 0
    Last Post: 11-07-2007, 10:53 PM
  5. Replies: 10
    Last Post: 11-13-2006, 02:07 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums