bengalliboy
MIS
Hi,
I am trying to access a foxpro table using ADODB and am getting this error: ODBC Synttax error or Access Violation.
I do have an ODBC driver for this table, and noone else is opening this table. There should not be any access violation but...?
Can any one figure it out what am I doing wrong? TIA. Here is the code...
Set cnDb = New ADODB.Recordset
connStr = "Driver=Microsoft Visual Foxpro Driver; " + _
"UID=;SourceType=DBF; SourceDB = " & "c:\mytest\datafile.dbf"
cnDb.Open connStr
I am trying to access a foxpro table using ADODB and am getting this error: ODBC Synttax error or Access Violation.
I do have an ODBC driver for this table, and noone else is opening this table. There should not be any access violation but...?
Can any one figure it out what am I doing wrong? TIA. Here is the code...
Set cnDb = New ADODB.Recordset
connStr = "Driver=Microsoft Visual Foxpro Driver; " + _
"UID=;SourceType=DBF; SourceDB = " & "c:\mytest\datafile.dbf"
cnDb.Open connStr