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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to field names of a table in VBA?

Status
Not open for further replies.

tekvb1977

Technical User
Nov 16, 2005
46
US
I have a table and I would like to change its field names automatically using VBA. I know I have to use the table definition object in access but don't know how I could write the code (syntax) to do it.

Any ideas/thoughts will be highly appreciated.

J

 
A starting point:
CurrentDB.TableDefs("TableName").Fields("OldName").Name = "NewName"

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top