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

Rename table field 2

Status
Not open for further replies.

samotek

Technical User
May 9, 2005
197
BG
Can i rename table field by code? For example, the field Sys to be renamed as Tyb ?
 
Hi
Yes, you can use the TableDef. For example:
Code:
Dim tdf As TableDef
Dim db As Database
Set db = CurrentDb
Set tdf = db.TableDefs("tblTable")
tdf.Fields("NameOfField").Name = "NewName"

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top