Est-ce que c'est possible sans passer par un dataset, c'est à dire en adodb, de cette manière :
Dans un module :
Public Ct AsNew ADODB.Connection
Public Cdt AsNew ADODB.Command
Dans ma form:
Dim Rt AsNew ADODB.RecordsetPrivateSub Form1_Load(ByVal sender AsObject, ByVal e As System.EventArgs) HandlesMe.Load
Ct.ConnectionString = "Provider=SQLOLEDB.1;Data Source=GPAO;" _
& "Initial Catalog=Pcp2;User id=sa;"Ct.Open()
Cdt.ActiveConnection = Ct
Rt.CursorLocation = ADODB.CursorLocationEnum.adUseClient
Rt.CursorType = ADODB.CursorTypeEnum.adOpenDynamic
Rt.LockType = ADODB.LockTypeEnum.adLockPessimistic
Remplissage_ComboBox1()
EndSubLe code de Remplissage_ComboBox1() étant dans la question du départ !
Merci pour votre aide, car je rame !!!