hi newbie,
The ADODC control is ok, but tends to be a little flaky, and slow
I would rather use code like the following
-----------------------------------------------
Public Sub GetTbltitle()
Dim objConn As ADODB.Connection
Dim strConnect As String
Dim strSQL As String
strConnTitle = INI_getString("String", "ConnectString1", App.Path & "\dataconn.ini")
Set objConn = New ADODB.Connection
Set oRSTitle = New Recordset
oRSTitle.CacheSize = 100
oRSTitle.CursorLocation = adUseClient
strSQL = "select * from tbl_title"
oRSTitle.Open strSQL, strConnTitle, adOpenDynamic, adLockBatchOptimistic, adAsyncFetch
Set frmMain.TDBGridTblTitle.DataSource = oRSTitle
frmMain.TDBGridTblTitle.ReBind
End Sub
-------------------------------------------