If Des_prod.Text <> "" Then
Dim sSQL2 As String
Dim oRST2 As ADODB.Recordset
Set oRST2 = New ADODB.Recordset
Dim oConnect2 As ADODB.Connection
Set oConnect2 = New ADODB.Connection
sSQL2 = "SELECT [Période], [Description_du_produit], [Quantité_assignée] FROM [Distribution employé]"
oConnect2.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & Form4.txtBaseDe.Text & ";"
oRST2.Open sSQL2, oConnect2
If Des_prod > "" Then
oRST2.Filter = "Période = '" & ComDateDisponible.Text & "' & Description_du_produit = '" & Des_prod.Text & "'"
End If
End If
|