I have a pair of unbound combo boxes to filter a list of information. The second combo box is dependant on the first, using the AfterUpdate method.
Selecting Option 1 in the first combo box means that the selection list for the second combo box is numeric. Selecting Option 2 in the first means the list for the second is text. This works fine as long as you select Option 2 FIRST, ie.:
Select cbo 1 - Option 2
Select cbo 2 - [any text option]
Change cbo 1 - Option 1
Select cbo 2 - [any numeric option]
The above works fine, however:
Select cbo 1 - Option 1
Select cbo 2 - [any numeric option]
Change cbo 1 - Option 2
Select cbo 2 - [any text option]
This doesn't work, giving me an Access error of:
The value you entered isn't valid for this field.
For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits.
Now, there is no FieldSize setting, and I've not told it to be numeric. Changing the values queried from numeric to text (by changing the Field Data Type in the Table the values are pulled from) causes this to work fine, but I need the numeric field to STAY numeric.
Is this one of those bugs caused by using MS Access 2003 SP3 that the 'office2003-kb945674-glb.exe' will fix? If not, can anyone see a way to fix this?
Cheers for the help, and Merry Christmas to everyone still on here!
Selecting Option 1 in the first combo box means that the selection list for the second combo box is numeric. Selecting Option 2 in the first means the list for the second is text. This works fine as long as you select Option 2 FIRST, ie.:
Select cbo 1 - Option 2
Select cbo 2 - [any text option]
Change cbo 1 - Option 1
Select cbo 2 - [any numeric option]
The above works fine, however:
Select cbo 1 - Option 1
Select cbo 2 - [any numeric option]
Change cbo 1 - Option 2
Select cbo 2 - [any text option]
This doesn't work, giving me an Access error of:
The value you entered isn't valid for this field.
For example, you may have entered text in a numeric field or a number that is larger than the FieldSize setting permits.
Now, there is no FieldSize setting, and I've not told it to be numeric. Changing the values queried from numeric to text (by changing the Field Data Type in the Table the values are pulled from) causes this to work fine, but I need the numeric field to STAY numeric.
Is this one of those bugs caused by using MS Access 2003 SP3 that the 'office2003-kb945674-glb.exe' will fix? If not, can anyone see a way to fix this?
Cheers for the help, and Merry Christmas to everyone still on here!