I have a table with a field that has Data type Text that looks like this;
ShaNumber
MPM-8
PPM-23
5137
15045
46005
etc.
The first two entries are the only ones with text. The rest are numbers.
I created a combobox called shacombo with rowsource of:
Select [SHANumber] From [MMC_To_SHANumber_Table] Where [MMCNumber] = Forms![Modal_Clearance_Update_Form]![MMCNumber] Order By [SHANumber];
This works fine.
I now want to change the rowsourse on current record with
Me![shacombo].Requery
Me![shacombo].DefaultValue = Me![shacombo].ItemData(0)
The DefaultValue for the first two entries return #Name. However, they are in the dropdown list. The numbers work fine.
I noticed that the combobox properties has an entry in the Decimal option(auto) indicating, I think, that the combobox expects numerics. Yet the combobox is based on a text field. For some reason when ItemData(0) is text, it returns an error.
Any ideas.
Thanks.
ShaNumber
MPM-8
PPM-23
5137
15045
46005
etc.
The first two entries are the only ones with text. The rest are numbers.
I created a combobox called shacombo with rowsource of:
Select [SHANumber] From [MMC_To_SHANumber_Table] Where [MMCNumber] = Forms![Modal_Clearance_Update_Form]![MMCNumber] Order By [SHANumber];
This works fine.
I now want to change the rowsourse on current record with
Me![shacombo].Requery
Me![shacombo].DefaultValue = Me![shacombo].ItemData(0)
The DefaultValue for the first two entries return #Name. However, they are in the dropdown list. The numbers work fine.
I noticed that the combobox properties has an entry in the Decimal option(auto) indicating, I think, that the combobox expects numerics. Yet the combobox is based on a text field. For some reason when ItemData(0) is text, it returns an error.
Any ideas.
Thanks.