Hi!
Try to change the record pointer after you changed the filter. For example, use 'Go Top' command.
Its also strange for me why code works from buttons...
>hi all,
>
>I have a form, which has two textlabel and a grid on it.
>
>The grid is to show the content of a table, and each button have their own filter settings. For example:
>
>
>Text1.click()
>set filter to
>thisform.MyGrid.refresh()
>
>
>
>Text2.click()
>set filter to type=="B"
>thisform.MyGrid.refresh()
>
>
>Both works fine, the only problem is, if I clicked Text2 and the result is none, and then I click on Text1, there will be no record displayed. But Text1.click() should reset any filter as shown above...
>
>Even more strange, if I replace the two textlabel with commandbuttons and copy and paste the click() event codes, it will work just fine! What is the problem with the textlabel?
>
>Please help! Thanks a lot!
>Jimi
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.