salut je voudrais que mon Datacombo affiche le nom et le prenom des patients
voila mon code qui marche bien , qui me donne le nom seulement
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
Private Sub Command2_Click()
Set rstest = New ADODB.Recordset
 rstest.CursorLocation = adUseClient
 rstest.CursorType = adOpenStatic
 rstest.LockType = adLockPessimistic
 rstest.Open "select id_patient,Nom,Prenom from patients", AdoConn
 
 Set DataCombo1.RowSource = rstest
     DataCombo1.ListField = "Nom"
     DataCombo1.BoundColumn = "id_patient"
 
End Sub
je voudrais donc faire un truc genre :
DataCombo1.ListField = "Nom" & " Prenom"

et biensure ca marche pas !!
vous pouvez m'aider ?
merci