Jun 11, 2005 #1 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 ?
Jun 12, 2005 2 #2 Remou Technical User Sep 30, 2002 13,030 BE 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" Upvote 0 Downvote
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"