Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SQL select into cursor
Message
 
À
30/07/1999 06:54:11
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00247995
Message ID:
00248111
Vues:
23
>When the SQL stmt executes the record content is correct. Let me say this, when I change the into clause from cursor to table everything works. Heres the arrangement:
>
>Valid clause of field-- execute sql into cursor (works right)
>Click of Button -- make page 2 active (the cursor already exists)
> grid.recordsource=''
> grid.refresh()
> grid.recordsource='thecursor'
> grid.refresh() (now has all records of base table+generates an error that one of the having paramaters of the sql statement is not found which indicates to me that it is attemting to reexecute the sql statement)
>
>There is an additional and prior field and button that do the same thing but with a table (the user can delete records he does not want to be part of the process) which works fine.

That explains it I think, you can see the correct way in Erik's reply. You're setting the recordsource to an empty string too late, it has to be done *before* the SQL into cursor...
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform