Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL - List Box - RowSource problem
Message
 
À
21/04/2006 11:50:52
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01115429
Message ID:
01115440
Vues:
7
Something like this:
SQLEXEC(Ras2Conn, "SELECT ENV_NO, ENV_TOTL ;
	 	FROM Ras2_envelope where env_no < 10 ", "test")
with thisform.List1
    .RowSourceType= 3
    .RowSource="select * from test into curs tmpcrs"
...
*or

*with thisform.List1
*	.RowsourceType=2
*	.Rowsource="test"
*...
>I am trying to connect a VFP list box with a SQL database. When I run the program, it tries to open a dbf file. Additional info:
>
>thisform.List1.RowSourceType=3
>thisform.list1.ColumnCount=2
>thisform.list1.RowSource="SELECT ENV_NO, ENV_TOTL FROM Ras2_envelope where env_no < 10 into cursor temp"
>thisform.requery()
>
>I can add the following code that will give me the info in the browse window.
> SQLEXEC(Ras2Conn, "SELECT ENV_NO, ENV_TOTL ;
> FROM Ras2_envelope", "test")
> SELECT test
> BROWSE nowait
>
>Any help will be appreciated.
>Jerry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform