table

G

Guest

hello

is there is any way I can rename the fields of a table
from code

Ex: For Table client rename the field F1 ==> ID_Client

Thanks
 
D

Dirk Goldgar

hello

is there is any way I can rename the fields of a table
from code

Ex: For Table client rename the field F1 ==> ID_Client

Thanks

Something like this air code:

Dim db As DAO.Database
Dim tdf As DAO.TableDef

Set db = CurrentDb
Set tdf = db.TableDefs("Client")

tdf.Fields("F1").Name = "ID_Client"

Set tdf = Nothing
Set db = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top