Try to call 'requery' method. If it not helps - write following code in requery of combobox and call it:
this.RowSource = ''
this.RowSourceType = 0
use in mycursor2
this.RowSourceType = 3
this.RowSource = 'SELECT ...'
HTH.
>I am using a drop down list box. It uses an sql statement (rowsourcetype = 3-sql statement) to populate the list part (rowsource). the sql statement is:
>select exp;
>from city_area_codes;
>where cl_city = city;
>into cursor mycursor2
>
>city is a public variable.
>now, if the value of city changes at some point, is there anyway to get the combo box to re-evaluate the sql statement so that the values in its drop down change?
>Thanks,
>Ryan
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.