Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RowSource Type = 3 SQL Statement? Then what?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00446415
Message ID:
00446424
Vues:
12
>>>>>>>>>>>>>>>>>>>>>>>
When I have RowSource Type = 3 SQL Statement does that mean that I have to put the SQL SELECT statement directly in the RowSource property of the listbox?
Or can I put the SQL SELECT statement somewhere else and assign it a name instead and use that name in the RowSource property of the listbox?
>>>>>>>>>>>>
You can declare variable like mysql="sele ....." and in the listbox init/refresh method use code like: this.RecordSource=mysql.

>>>>>>>>>
I put the CURSOR name from my SQL SELECT in the RowSource property, but I get an error "unrecognized command verb." What options do I have if I want to just stick a name in the RowSource instead of the whole SQL SELECT statement since depending upon the user's choices different SQL SELECT statement might end up populating the listbox drop-down list? Thanks for helping me understand this.
>>>>>>>>>>>>>>>>>>>>>>>>>>>
You can not use alias name in this case.

Hope this help.
Best Wishes
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform