Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP3.0 Page frame question....
Message
From
24/02/1998 16:24:18
 
 
To
24/02/1998 15:20:43
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00080898
Message ID:
00080928
Views:
26
>I have created a form with a 2-page pageframe.
>The first page is used to search for a value in
>one of two tables. I would like for the search
>results to be displayed in a grid on the second
>page. I have tried various combinations for the
>recordsource of the grid. Either I get all records
>for the table, no records or the grid shows entirely
>white. The SQL I tried to use looks something like
>this:
> SELECT * FROM title,libkey where
> libkey.keyword = csearchword
>On the first page they can choose 2 different fields
>to search on. I need to be able to change the
>grid recordsource for each different search.
>
>Thanks in advance!
>Susan

Use cursor as grid recordsource and rewrite the cursor any time you launch new search:
Select ..... Into Cursor tmpGriddata
Thisform.Grid1.recordsource=""
Thisform.Grid1.recordsource="tmpGriddata"
Thisform.Grid1.refresh
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform