greathope123
Programmer
Hi,
This is perhaps very basic but I don't know why nothing appears in MSHFlexGrid1:
Private Sub Command1_Click()
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\test.mdb"
rs.Open "Select * From Table1", cn
Set MSHFlexGrid1.DataSource = rs
End Sub
This is perhaps very basic but I don't know why nothing appears in MSHFlexGrid1:
Private Sub Command1_Click()
Dim cn As New ADODB.Connection, rs As New ADODB.Recordset
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\test.mdb"
rs.Open "Select * From Table1", cn
Set MSHFlexGrid1.DataSource = rs
End Sub