Read DBase IV with VB 3.0 Professionnal 
Author Message
 Read DBase IV with VB 3.0 Professionnal

I have a problem when I am trying to read a DBF IV database who I made from
Excel ( save as).
Here, the second instruction is not good:
        Set db = OpenDatabase(NameFile$, 0, 0, "DBASE IV;")
        Set nametable = db.OpenTable("name"), because VB don't find the name in question.

And if I try these instructions:
        On error resume next
        Set db = OpenDatabase(Fichier$, 0, 0, "DBASE IV;")
         MsgBox "nb tables=" & db.TableDefs.Count
Vb inform me that there is no table.

But when I open the same file  with Data Manager or VisData, no problem, I get all the data because these programs give the same name to the first table then the name of the file.

How can we open and work with tables from a DBASE file created from Works or Excel with VB 3.0 ?

Thank you
Francois Charbonneau
Montreal



Thu, 26 Jun 1997 23:50:18 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Read DBase IV files with VB 3.0 Prof.

2. VB 3.0 + dBase IV+Acess 2.0

3. VB 3.0 Pro, CodeBasic 5.1 and DBase IV Question

4. VB 3.0 and dBASE IV

5. VB 3.0 Pro, CodeBasic 5.1 and DBase IV question

6. How can I read record from dBase IV (.DBF) with VB 6

7. Reading fields from a dbase IV file

8. How to read dBASE IV with ODBC 32?

9. Can't read DBase IV / FoxPro graphics with Jet 3.5

10. Creating dBase IV (III) with VB

11. DBase IV with VB 4.00

12. VB link to dBase IV problem

 

 
Powered by phpBB® Forum Software