Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to insert SQL into textbox values
Message
 
To
24/06/2002 11:16:06
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00671651
Message ID:
00671730
Views:
16
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform