Hi all
I have a situation where I have an existing form that has funcioned well for years but is giving a problem running in Access 2010. There are two combo boxes in the header of a form, which set a filter criteria for displaying a stock listing.
The combos 'cascade' such that the AfterUpdate event of combo1 sets a parameter and then a Requery of combo2.
The AfterUpdate of combo2 sets the string for filtering the form and then calls Me.FilterOn = True. The data in the Detail section of the form is always correct (i.e. the filtering works ok) but the value displayed in combo2 can be wrong.
If the form has just been opened then combo2 becomes blank after making a selection. If subsequent selections are made in combo2 it displays the correrct data.
However, if combo1 is reselected (changed) and a new selection made from combo2, again the data is filtered correctly but the value displayed in combo2 is the previous value. It is only correct after making subsequent selections without changing combo1.
The query returns four columns; the first is bound and the other three are zero width. The data is 'Limit to List' and yet the 'wrong' values are not in the list.
I've followed my code in debug mode and fairly certain the process is as described above.
Has anyone a clue to what is happening ?
S7
I have a situation where I have an existing form that has funcioned well for years but is giving a problem running in Access 2010. There are two combo boxes in the header of a form, which set a filter criteria for displaying a stock listing.
The combos 'cascade' such that the AfterUpdate event of combo1 sets a parameter and then a Requery of combo2.
The AfterUpdate of combo2 sets the string for filtering the form and then calls Me.FilterOn = True. The data in the Detail section of the form is always correct (i.e. the filtering works ok) but the value displayed in combo2 can be wrong.
If the form has just been opened then combo2 becomes blank after making a selection. If subsequent selections are made in combo2 it displays the correrct data.
However, if combo1 is reselected (changed) and a new selection made from combo2, again the data is filtered correctly but the value displayed in combo2 is the previous value. It is only correct after making subsequent selections without changing combo1.
The query returns four columns; the first is bound and the other three are zero width. The data is 'Limit to List' and yet the 'wrong' values are not in the list.
I've followed my code in debug mode and fairly certain the process is as described above.
Has anyone a clue to what is happening ?
S7
Comment