>Mark,
>
>How do you populate your grid? Do you not instantiate the grid until the results are returned (different pages on a page frame?)? I've been working on a class that uses spt, but I'm having trouble with the grid.
>
>Thanks
At first there is a
dead grid on the results form with no RecordSource or any other proerties defined for the grid. Of course the user never sees this because in the INIT of the form, I call my Query form if no Cursor exists. My Query form is modal and has a private DS. From the INIT of the results form, I issue a -- DO FORM SQLQuery to lcSQL. If lcSQL comes back empty, I return .F. and the form never shows. Otherwise, I just start populating the grid properties as needed. Generically, I just show every field in the cursor except my PK field. Since I always name my PK field KeyID in all my tables, this is easy to do.
On the results form, I also have a QUERY button so the user can always do another query.
Mark McCasland
Midlothian, TX USA