Nov 19, 2001 #1 tonytrini Programmer Nov 23, 2000 8 TT Hi, I am using a multi column listbox to display records from a table. One of the table fields is a currency field. How can I format the listbox to display two decimals instead of four for the currency field? Thanks
Hi, I am using a multi column listbox to display records from a table. One of the table fields is a currency field. How can I format the listbox to display two decimals instead of four for the currency field? Thanks
Nov 19, 2001 #2 jimstarr Programmer Feb 6, 2001 975 US You can use STR(currencyfield, 10, 2). Jim Upvote 0 Downvote
Nov 20, 2001 Thread starter #3 tonytrini Programmer Nov 23, 2000 8 TT str() does not work with the listbox rowsource property. eg: list1.rowsource = "table1.itemcode,str(sellprice,10,2)" produces a syntax error. Upvote 0 Downvote
str() does not work with the listbox rowsource property. eg: list1.rowsource = "table1.itemcode,str(sellprice,10,2)" produces a syntax error.
Nov 20, 2001 #4 jimstarr Programmer Feb 6, 2001 975 US You're right - very quirky. I got it to work in reverse order: list1.rowsource = 'str(table1.sellprice,10,2),itemcode' Jim Upvote 0 Downvote
You're right - very quirky. I got it to work in reverse order: list1.rowsource = 'str(table1.sellprice,10,2),itemcode' Jim
Nov 20, 2001 #5 jimstarr Programmer Feb 6, 2001 975 US This was with rowsourcetype = 6. Jim Upvote 0 Downvote