Question : Microsoft Access to VB6 MsFlexfrid

Hello all.

I need your help with a search tool in VB6.

I have a calendar and a common button. I would like to select a date and when i would click on the button, it would search in my Access db in the first column called "Date", and brign all the line in my MSFlexgrid1.

How can i do this?

Since i dont know what info i need to tell you, here is the code that i have to feed a combo box in the same form.

Thanks again for your help
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
Private Sub Form_Load()

Dim sSQL2 As String
  Dim oConnect2 As ADODB.Connection
  Set oConnect2 = New ADODB.Connection
  Dim oRST2 As ADODB.Recordset
  Set oRST2 = New ADODB.Recordset


sSQL2 = "SELECT [Produits]FROM [Description produit]'"

oConnect2.Open "Provider=Microsoft.ACE.OLEDB.12.0;" & _
"Data Source=" & Form4.txtBaseDe.Text

oRST2.Open sSQL2, oConnect2
Do Until oRST2.EOF
  Des_prod.AddItem oRST2("Produits")
  oRST2.MoveNext
Loop

End Sub

Answer : Microsoft Access to VB6 MsFlexfrid

Try the Load Optimized Defaults first., If that doesn't work try the other one. Good luck.
Random Solutions  
 
programming4us programming4us