Mar 20, 2003 #1 VNDN Programmer Feb 28, 2003 27 US Hello all, Can you show me how to connect to dBase. Thank you much in advance. CVL
Mar 20, 2003 #2 Spellman Programmer Nov 4, 2001 205 GB What kind of data access are you using to try to connect Mark The key to immortality is to make a big impression in this life!! Upvote 0 Downvote
What kind of data access are you using to try to connect Mark The key to immortality is to make a big impression in this life!!
Mar 20, 2003 #4 CasperTFG Programmer Nov 15, 2001 1,210 US Here are 2 samples... for DAO and ADO. DAO Sub DAOOpenISAMDatabase() Dim db As DAO.Database Set db = DBEngine.OpenDatabase(".\Sales.xls", _ False, False, "DBASE Extended Property;" db.Close End Sub ADO Sub ADOOpenISAMDatabase() Dim cnn As New ADODB.Connection cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=.\Sales.xls" & _ ";Extended Properties=DBASE Extended Property;" cnn.Close End Sub These are the Extended properties for DBase dBASE III dBASE IV dBASE 5 Craig, mailto:sander@cogeco.ca In the computer industry, there are three kinds of lies: lies, damn lies, and benchmarks. Upvote 0 Downvote
Here are 2 samples... for DAO and ADO. DAO Sub DAOOpenISAMDatabase() Dim db As DAO.Database Set db = DBEngine.OpenDatabase(".\Sales.xls", _ False, False, "DBASE Extended Property;" db.Close End Sub ADO Sub ADOOpenISAMDatabase() Dim cnn As New ADODB.Connection cnn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=.\Sales.xls" & _ ";Extended Properties=DBASE Extended Property;" cnn.Close End Sub These are the Extended properties for DBase dBASE III dBASE IV dBASE 5 Craig, mailto:sander@cogeco.ca In the computer industry, there are three kinds of lies: lies, damn lies, and benchmarks.
Mar 20, 2003 #5 CasperTFG Programmer Nov 15, 2001 1,210 US Oh I guess I should include where I stole this from... http://msdn.microsoft.com/library/d...ry/en-us/dndao/html/daotoadoupdate_topic4.asp And there you have it Craig, mailto:sander@cogeco.ca In the computer industry, there are three kinds of lies: lies, damn lies, and benchmarks. Upvote 0 Downvote
Oh I guess I should include where I stole this from... http://msdn.microsoft.com/library/d...ry/en-us/dndao/html/daotoadoupdate_topic4.asp And there you have it Craig, mailto:sander@cogeco.ca In the computer industry, there are three kinds of lies: lies, damn lies, and benchmarks.
Mar 20, 2003 Thread starter #6 VNDN Programmer Feb 28, 2003 27 US Craigsander, I have an error("Could not find an installable ISAM driver" when I used your code. Thanks CVL Upvote 0 Downvote
Craigsander, I have an error("Could not find an installable ISAM driver" when I used your code. Thanks CVL
Mar 20, 2003 #7 Spellman Programmer Nov 4, 2001 205 GB Check your machine for MSXBSE35.dll. It needs this if it's going to use the XBAse drivers. Mark The key to immortality is to make a big impression in this life!! Upvote 0 Downvote
Check your machine for MSXBSE35.dll. It needs this if it's going to use the XBAse drivers. Mark The key to immortality is to make a big impression in this life!!