bengalliboy
MIS
Hi,
I got the connection working but could not open the record set... I know I should not use the file name for source rather jus path for opening a new connection.. but how does the recordset work? Here is my code. Thanks.
'path_fox is the path of my data file
connStr = "Driver=Microsoft Visual Foxpro Driver; " + _
"UID=;SourceType=DBF; SourceDB = " + path_fox
cnDb.Open connStr
cnDb.CommandTimeout = 0
Set rsDb = New ADODB.Recordset
With rsDb
.ActiveConnection = cnDb
.Source = path_fox
'I get error when I try to open this :
.Open
I got the connection working but could not open the record set... I know I should not use the file name for source rather jus path for opening a new connection.. but how does the recordset work? Here is my code. Thanks.
'path_fox is the path of my data file
connStr = "Driver=Microsoft Visual Foxpro Driver; " + _
"UID=;SourceType=DBF; SourceDB = " + path_fox
cnDb.Open connStr
cnDb.CommandTimeout = 0
Set rsDb = New ADODB.Recordset
With rsDb
.ActiveConnection = cnDb
.Source = path_fox
'I get error when I try to open this :
.Open