Results 1 to 10 of 10
  1. #1
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79

    Listbox currency format

    hello everyone,

    so basically the field is set as currency

    the format of textbox is set as currency

    listbox source is from the table, also tried in query

    am trying to get the value from listbox to textbox. it works in my other forms,


    then how come in the current form instead of reading currency value as £10.00 it shows as -0.073425925925926 in textbox

    Me.txtbox1 = Me.lstEInfo.Column(5)

    any idea, thanks alot

  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,521
    First thought is to verify you have the correct column. Is the value you want in the 6th column of the listbox row source?
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    thank you, usually the columns always start from 0, 1, 2

    but after filter it seems like it start from one, thanks a lot

    also let say the textbox says 10 when it actually £10.00 how do i make it show as £10.00

    thanks alot

  4. #4
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    no worries, figured it out , thanks

  5. #5
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    No problem. It should be zero based; I wonder if your filtering is changing the columns.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  6. #6
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    the filter changes the column a little bit meaning before filter ID field is shown after filter it not shown despite putting ID in the filter listbox row source. it doesn't really make a difference, as long as it doing what it suppose to. thank you very much for your help i really appreciate it

  7. #7
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    in regarding to this topic, if the column of listbox is the right one and still the textbox shows as integer what could be the reason and is there anything i can do? thanks.

    also this occurs in the different form but the principle is the same.

  8. #8
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,521
    Have you tried setting the format property of the textbox? If so, perhaps it's being seen as text, so try

    Me.txtbox1 = CCur(Me.lstEInfo.Column(5))
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  9. #9
    princess12 is offline Advanced Beginner
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2015
    Posts
    79
    omg! yes it works, thank you so much, Yayyy!!!, thanks a lot

  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,521
    Happy to help!
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. Replies: 2
    Last Post: 03-27-2013, 11:03 AM
  2. Replies: 3
    Last Post: 12-21-2012, 02:27 PM
  3. Format two fields in a Union Query as Currency
    By alansidman in forum Queries
    Replies: 1
    Last Post: 12-14-2012, 12:41 PM
  4. Custom Currency Format
    By Ichigo in forum Access
    Replies: 3
    Last Post: 04-26-2011, 03:34 AM
  5. Replies: 2
    Last Post: 03-23-2011, 11:43 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