Salut tout le monde,
je cherche une méthode sql qui tourne la position d'un enregistrement d'une table selon un critère. jusqu'à maintenant, j'utilise une fonction au niveau du code vb net. voici un exemple :
Merci de votre aide.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12 Function Get_postion_Client(CodeClient as String) as integer dim i,pos as integer pos=-1 For i=0 to Madataset.Tables("CLIENTS").rows.count-1 if Madataset.Tables("CLIENTS").rows(i)(0)=CodeClient then pos=i Exit For End If Next return pos End Function![]()
Partager