I have use a View for my grid control.
I have set the SendUpdate.
On Init() , I set: this.recordsource=""
On the click() of a combo box, I code:
b=thisform.brand.value
m=thisform.model.value
select view1
set filter to brand=b
locate
thisform.grid1.recordsource="view1"
thisform.grid1.refresh
The result:
Upon selecting the combo box, the grid focus on the portion that I want. However, when I try to scroll up or down, the error say "Variable b is not found".
Did I do it the wrong way? Please advice. Thanks. I am a clever newbie...![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)
I have set the SendUpdate.
On Init() , I set: this.recordsource=""
On the click() of a combo box, I code:
b=thisform.brand.value
m=thisform.model.value
select view1
set filter to brand=b
locate
thisform.grid1.recordsource="view1"
thisform.grid1.refresh
The result:
Upon selecting the combo box, the grid focus on the portion that I want. However, when I try to scroll up or down, the error say "Variable b is not found".
Did I do it the wrong way? Please advice. Thanks. I am a clever newbie...
![[peace] [peace] [peace]](/data/assets/smilies/peace.gif)