A ComboBox with five columns, three of them are numeric in a Table. The ComboBox shows the Columns as numeric (1,200.00), but when the TextBox shows the value, it drops the coma (1200) and the decimal. Do care about the decimal because in the table the numbers are formatted as a numeric whole numbers.
The problem I'm having is trying to get the coma to appear when it should (1,200) it does appear in the column. I have tried to format the values in the Combobox Row Source Select statement like this,
and it does add the coma, but then it creates another problem and that is when a zero value should show the textbox is blank and the my calculation get all missed up because it's blank. It even changes the zero value to a blank when looking at columns on the ComboBox.
Everything works like it should until a textbox gets a blank instead of a zero. I've spent two days on this and now I need some help.
How do I force a zero when the column forces a blank, all this because I placed a numeric format in the select statement?
The problem I'm having is trying to get the coma to appear when it should (1,200) it does appear in the column. I have tried to format the values in the Combobox Row Source Select statement like this,
Code:
Format(tAmmo.GrossQty, "#,###") AS ["GrossQty"], Format([tAmmo].[TargetLevel], "#,###") AS ["TargetLevel"]
Everything works like it should until a textbox gets a blank instead of a zero. I've spent two days on this and now I need some help.
How do I force a zero when the column forces a blank, all this because I placed a numeric format in the select statement?
Comment