T
Trisha
I have a table field of type text which contains 3 digit
numbers. It is important that leading zeros are there. The
format property of the field is set to 000. Then there's a
corresponding combo on a form, which I programmed to
display ItemData(0):
cboX.DefaultValue = cboX.ItemData(0)
It displays the leading zeros correctly in the drop down
list, but does not display them in the default value. I
tried
cboX.DefaultValue = Format(cboX.ItemData(0),"000")
but still no leading zeros. I also tried Format() in the
SELECT statement for the recordsource, but same behavior.
Setting the combo format property to "000" didn't work
either.
Any ideas?
TIA
Trisha
numbers. It is important that leading zeros are there. The
format property of the field is set to 000. Then there's a
corresponding combo on a form, which I programmed to
display ItemData(0):
cboX.DefaultValue = cboX.ItemData(0)
It displays the leading zeros correctly in the drop down
list, but does not display them in the default value. I
tried
cboX.DefaultValue = Format(cboX.ItemData(0),"000")
but still no leading zeros. I also tried Format() in the
SELECT statement for the recordsource, but same behavior.
Setting the combo format property to "000" didn't work
either.
Any ideas?
TIA
Trisha