Hi,
I want to open the dBASE file (.dbf) with VB, and when I try to manipulate (through SQL) the table, I receive a lot of error msg.
-it's better for me to use Data Control or ADODC? In Data I find reference to dBase, but in ADODC I didn't find...
My code:
Dim conexaoDBF As New ADODB.Connection
Dim Rs As New ADODB.Recordset
Dim sql As String
conexaoDBF = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='" & "C:\Documents and Settings\sorin\Coduri VB\Dani\sorin.dbf" & "';Extended Properties=dBASE IV;Mode=Read;Jet OLEDB:database Locking Mode =1"
Rs.Open "Select * From sorin", conexaoDBF, , , adCmdText
Set DataGrid1.DataSource = Rs
----------------------------------
but there is an error (3709) and don't work...
If you have experience in this type of work (dBase with VB), could you give me a solution or some steps in solve my problem? May be it's imposible to do this kind of work...
Thanks in advance and best regards
zane


Reply With Quote


Bookmarks