hello,
oui tu rajoutes une colonne dans ta table mémoire (à rendre invisible ou non) et pour la requête un truc du genre :
HExécuteRequêteSQL(ReqClient,"Select CLIENT.Civilité + ' ' + CLIENT.Prénom + ' ' + CLIENT.Nom + ' (' + CLIENT.Ville + ')' as Formule1,Client.NumClient From Client")
ou alors :
HExécuteRequêteSQL(ReqClient,"Select Client.NumClient,CLIENT.Civilité + ' ' + CLIENT.Prénom + ' ' + CLIENT.Nom + ' (' + CLIENT.Ville + ')' as Formule1 From Client")
si tu veux le NumClient en première colonne de la table.
Pour avoir la table ordonnée par le nom des clients tu rajoutes une colonne invisible et un truc du genre :
HExécuteRequêteSQL(ReqClient,"Select CLIENT.Civilité + ' ' + CLIENT.Prénom + ' ' + CLIENT.Nom + ' (' + CLIENT.Ville + ')' as Formule1,Client.NumClient,Client.Nom From Client ORDER BY Client.Nom")
Ami calmant, J.P
Partager