Reading Access97 files in VB4 
Author Message
 Reading Access97 files in VB4

Quote:
>I need to write a program that will look at an Access Table, and return
>the names of the fields in that table. Any suggestions?

Iterate throught the fields collection of a tabledef object. This is
just straight DAO stuff:

dim db as database
dim td as tabledef
dim fld as field

set db = dbengine(0).opendatabase("yourdb.mdb")
set td = db.tabledefs!sometable

for each fld in td.fields
  msgbox "Field: " & td.name
next fld

-- Jim Ferguson, FMS
    http://www.*-*-*.com/



Sat, 15 Jan 2000 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. VB4.0 reading Access97 files

2. Help!!!Cannt read localization Mdb files(Use Access97 and VB5)

3. Accessing Secure Access97 files with VB4

4. Access97 reading read-only Access95 databases

5. Access97 reading read-only Access95 databases

6. Converting VB4/Access95 to VB4/Access97

7. Reading ini file in vb4

8. Reading Excel 5 files in VB4

9. Reading .GIF files with VB4

10. Reading VB3 and VB4 files

11. Reading File properties in VB4

12. Read ASCII files in VB4

 

 
Powered by phpBB® Forum Software