Hi,
Before I write a function to do this, I figured I would consult here because it seems like a rather silly thing....
I am looking to get the "verbatim" value of a field.
For example, If the field's value is $100.00 then getting field.value in VBA returns "100"
Even more strange is that if the field's value is $100.50 then getting field.value returns "100.50" (it now treats it as a double?)
My desire is when the fields value is $100.00 then i can retrieve a string that is "$100.00" - currency sign and its level of precision.
This would be my desire for not just currency types but all (most) types.
MS Documentation points out.... https://docs.microsoft.com/en-us/off...e-property-dao
The reason I need this is because List Boxes don't support individual formatting of rows (lame) - when the listbox rowsource is set to "Value List"... When set to RowSource, the listbox willThe setting or return value is a Variant data type that evaluates to a value appropriate for the data type, as specified by the Type property of an object.
inherit the rowsource field data type and present them in the listbox as such. Unfortunately, my listbox must remain as a Value List rowsource type for this application.
Any ideas besides writing a custom function?
Thanks