Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing grids
Message
 
To
25/09/1999 15:49:16
Criss Jensen
Injury Prevention Research Center
Iowa City, Iowa, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00268722
Message ID:
00274793
Views:
32
Hi, I was just picking up on this thread of populating a grid from a SQL Select statement.... what is the recordsource type in this case, Table?

Basically, I've defined a grid with two fields, lastname and firstname. I have a txtbox for lastname outside of the grid and I want all instances of lastname and firstname displayed for the last name that I enter in the outside txt box. (I'm querying for duplicate names...)

I've got a button that has the following in the click() method:

thisform.grdNames.recordsource=""
SELECT lastname firstname from namefile Into cursor crsTemp
thisform.grdNames.recordsource="crsTemp"

The source data file is contained in the data environment of the form.

--- L
-- Larry Keyes
Remember only You can prevent Gray Goo. Never release nanobot assembers without replication limiting code.
Previous
Reply
Map
View

Click here to load this message in the networking platform