Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

table description 1

Status
Not open for further replies.

Oromia

Programmer
Feb 6, 2006
12
0
0
US
How can I retirve a table description programaticaly from access database?
 
Dim tdf as DAO.TableDef
Dim fld as DAO.Field

Set tdf = CurrentDB.TableDefs(TableName)
On Error Resume Next
For Each fld In tdf.Fields
'blah blah blah
Next fld

You may need to add a reference to the Microsoft DAO object library.

-Pete
 
I need to update the column descriptions of tables. I basicaly should read from one table and update the other tables with the descriptions. I have the code which reads from the descriptions. My problem is with updating. Thanks
 
fld.Properties.Append fld.CreateProperty("Description", dbText,[red]thedescriptionyouhave[/red])

obviously replacing the part in red.

-Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top