Re: datagrid with recordset
There should be an error message, because you are using a forward slash instead of a backslash in the file to open :
VB Code:
cn.Open "Provider= Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "/workers.mdb;"
Could be you used entered it wrong here, in that case, are you sure there is data in the database?
Re: datagrid with recordset
well, i don't think this is the problem...
the recordset is working, if I'm to search or disply values in it in any other way, but the datagrid is not responding to this.
thank you anyway
daniel
Re: datagrid with recordset
I believe you need to use Client Side cursor when data binding.
VB Code:
cn.Open "Provider= Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "/workers.mdb;"
rs.CursorLocation = adUseClient
rs.Open "select workers.* from workers", cn, adOpenStatic, adLockOptimistic
Re: datagrid with recordset
thank you very much! it solved it...