Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid and Sql Select
Message
 
À
03/08/1998 19:23:24
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00123661
Message ID:
00123713
Vues:
20
> Hello All, anyone here do a Sql Select and show her result in a Grid
>Object?
>
> By sample, i want do a query in a table be determinate date
>M.Dataini=21/07/1998 and M.DataFim= 21/10/1998, i have the follow sintaxe:
>
>SELECT Parcela.valorrec, Parcela.datavenc, Parcela.codigo, Cliente.nome,;
> Cliente.endereco, Cliente.bairro, Cliente.cidade, Cliente.estado,;
> Cliente.cep, Cliente.rg, Cliente.cic;
> FROM banco!parcela INNER JOIN banco!vendas;
> INNER JOIN banco!cliente ;
> ON Vendas.codcli = Cliente.codigo ;
> ON Parcela.codvenda = Vendas.codigo;
> WHERE Parcela.datavenc BETWEEN M.dataini AND M.datafim;
> ORDER BY Cliente.nome;
> INTO Cursor cCobTit
>
>But when a do this query the grid object is disabled, there's any soluction
>this trouble?
>
>Thanks

First, if you want to display the result set of SQL Select into a grid, issue the SQL statement in the Load Event of the form. Redisplaying it with different result set needs a recreation new cursor.

Second, I would suggest you to use SQL View instead of SQL cursor in order to utilize the REQUERY feature. This approach is faster, reliable, and easier to maintain.
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform