Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListBox Formatting

Status
Not open for further replies.

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
 
str() does not work with the listbox rowsource property.

eg: list1.rowsource = "table1.itemcode,str(sellprice,10,2)"
produces a syntax error.
 
You're right - very quirky. I got it to work in reverse order:

list1.rowsource = 'str(table1.sellprice,10,2),itemcode'

Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top