Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    The padded spaces cause the value to be a string and formatting can't recognize a number. You could use Format function to ensure that the decimal part is part of the value passed to the Pad function. You can tack on the $ after the padding is done or modify the Pad function to do it there. Try something like:


    "$" & Pad(Format(value,"0.00"), "R", 10)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  2. #17
    brc is offline Novice
    Windows XP Access 2007
    Join Date
    Mar 2011
    Posts
    29
    Yep, just did varText = Format(varText, "Currency") right at the beginning of the Pad Function and everything works great.

    Thanks

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Listbox Help
    By allykid in forum Programming
    Replies: 2
    Last Post: 03-30-2011, 06:17 AM
  2. How to vertically align text inside a text box ?
    By alexcalgary in forum Forms
    Replies: 2
    Last Post: 10-06-2010, 08:44 AM
  3. Horizontal listbox - ?
    By bane in forum Forms
    Replies: 3
    Last Post: 04-20-2010, 06:48 PM
  4. Align Fields
    By saqqer in forum Programming
    Replies: 1
    Last Post: 08-04-2009, 07:30 PM
  5. Replies: 2
    Last Post: 12-19-2005, 09:25 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