Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to insert SQL into textbox values
Message
 
À
24/06/2002 11:16:06
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00671651
Message ID:
00671730
Vues:
15
>Hi guys,
>
>just want to know, if anyone have some sample code on howto use SQL in a text box, I want to choose something from combo as a criteria in a SQL statement, but once i form a statement, what should i do? insert into cursor? and how do i insert SQL result as textbox values.
lcSql = [select * from ]+allt(cbo.cisplayvalue)+[ into cursor mycursor]
&lcSql
if _tally > 0
   textbox.value = allt(mycursor.somefield)
endif
>and how to create a predefined view, for example, i want to create a customized cursor view in >the database pulling data from multiple dbf. where would i do that without having to write >code? i tried using the GUI query stuff, but not work...
MODIFY DATABASE
Then right click and select New Local View... or New Remote View... depending on where the data is located.
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform