hello please can you help me
i have this error "Run-time error '3709': The connection cannot be used to perform this operation. It is either closed or invalid in this context."
in this code :
:(:(
i have this error "Run-time error '3709': The connection cannot be used to perform this operation. It is either closed or invalid in this context."
in this code :
Code:
Private Sub Form_Load()
Dim cmd As String
Dim rs As New ADODB.Recordset
cmd = "select * from client"
rs.Open cmd, cn, adOpenKeyset
Set fg.DataSource = rs
While Not rs.EOF
cmbnum.AddItem rs(0)
rs.MoveNext
Wend
fg.FormatString = " Num_Client | Intitulé | Capital | Activité | Nature | Date | Adresse | Email | Téléphone | RC | Patente"
End Sub