P
Paul
Hi,
On my form I have a number of combo boxes. I need to change what data these
are populated with dynamicallay.
To do this, I set the rowsource to "", update the .sql of the underlying
query, then reset the rowsource to the query.
I am using the same query for all of the combos (there are a lot of them).
Most of the time this works fine, but sometimes, when changing sql of the
underlying query from one that returns dates (or numbers) to one that
returns strings, I get error messages about invalid data types "The value
you entered isn't valid for this field".
It seems that sometimes the combo 'remembers' that it was previously bound
to a query that returned numeric data, and when you change it to string,
although the values have populated, you can't choose them because the combo
is still expeting numerics.
I can't find a property that determines what sort of data the combo is
expecting. It appear to be something that Access figures out for itself.
How can I reset the combo so that I no longer get this error?
TIA
Paul
On my form I have a number of combo boxes. I need to change what data these
are populated with dynamicallay.
To do this, I set the rowsource to "", update the .sql of the underlying
query, then reset the rowsource to the query.
I am using the same query for all of the combos (there are a lot of them).
Most of the time this works fine, but sometimes, when changing sql of the
underlying query from one that returns dates (or numbers) to one that
returns strings, I get error messages about invalid data types "The value
you entered isn't valid for this field".
It seems that sometimes the combo 'remembers' that it was previously bound
to a query that returned numeric data, and when you change it to string,
although the values have populated, you can't choose them because the combo
is still expeting numerics.
I can't find a property that determines what sort of data the combo is
expecting. It appear to be something that Access figures out for itself.
How can I reset the combo so that I no longer get this error?
TIA
Paul