Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scrolling In Grid
Message
From
04/03/1999 11:10:37
Senna Dwipayana
Indo Rebel Apparel Cv
Bandung, Indonesia
 
 
To
04/03/1999 02:46:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00193885
Message ID:
00194045
Views:
16
Hi Oliver,

Try to make a Parameterized SQL view as your grid.recordsource,

like this,

LOCAL lcCondition
lcCondition="mycondition" &&& or you can add Space(0), or any data type needed

Create SQl View myView as ;
Select a.*,b.* FROM mytable1 a,mytable2 Where a.myfield1=b.myfield2 and;
a.myfield1=lcCondition

Use this View as Grid.recordsource

So you can change the condition each time you needed by :

Local lcCondition
lcCondition="anyCondition"
=Requery(grid.recordsource)
grid.refresh()

HTH
Senna Dwipayana
Being good is better
Being better is a bless
Previous
Reply
Map
View

Click here to load this message in the networking platform