Solo712
Registered User.
- Local time
- Yesterday, 19:49
- Joined
- Oct 19, 2012
- Messages
- 838
I am using a listbox which is populated at runtime with stats. I have a really strange problem with a string formatted for currency, like so:
the stBudgetStr being previously assigned value in this manner :
the stBudget variable is $688,190. What the list box displays is
I am using Access 2007 SP3. Is this a known issue ? And is there a workaround ?
Best,
Jiri
Code:
.AddItem "Budget for " & Str(Year(Date)) & " :" & stBudgetStr
the stBudgetStr being previously assigned value in this manner :
Code:
stBudgetStr = Format(stBudget, "##,###,##0")
the stBudget variable is $688,190. What the list box displays is
i.e. the reading is dropped after the first comma. I have played around with this problem and indeed if the budget figure is over a million, the listbox stops displaying when it encounters the first comma, ie. at the millions. Nothing helps. If I add another string after the figure, it is dropped with the rest - always at the first comma. In contrast, if I concatenate the string with Str(stBudget) the figure displays in full.Budget for 2012 :688
I am using Access 2007 SP3. Is this a known issue ? And is there a workaround ?
Best,
Jiri