Results 1 to 2 of 2
  1. #1
    NISMOJim is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2010
    Posts
    273

    format in a listbox

    Helloeveryone, it's been a while...

    I have a form to enter purchases. As a reference, I'm using a listbox to display the amount that has already been spent, and another to display how much is left in an account available for spending. The Row Source Type for this first box is Table/Query, and the Row Source is the following sql...

    SELECT PO.PONo, PO.D1, PO.D2, PO.D3, Nz([D1])+Nz([D2])+Nz([D3]) AS Total FROM PO WHERE (((PO.PONo)=[Forms]![FlDel]![PONo]));

    This is working fine, the problem is with formatting. All of these fields in the table are formatted as currency, and I went through the sql as I was building it, and formatted them as currency there too, but the listbox still shows a non-formatted number (at least it's the correct number). Since there is no formatting property for a listbox, and no Row Source if I were to change to a textbox, how can I get this box to display as currency?

    Thanks (as always) for the help.

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,625
    Try the Format function.

    Format([D1], "Currency")
    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 03-23-2014, 06:50 AM
  2. Replies: 2
    Last Post: 09-19-2013, 10:22 PM
  3. listbox column head format backcolor
    By masoud_sedighy in forum Programming
    Replies: 3
    Last Post: 07-31-2013, 07:44 PM
  4. Replies: 1
    Last Post: 09-10-2012, 11:21 PM
  5. checkbox format for listbox
    By cpet in forum Access
    Replies: 3
    Last Post: 09-20-2010, 08:02 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