S
SusanV
Hi all,
I need to modify field names via VBA for numerous tables without knowing all
the field names in advance. I don't want to alter any data at this stage,
just the field names themselves.
For instance, for a table called FANS:
Field names BEFORE modification:
Equipment
HSC
Location
1245
1236
(etc - may have many numeric fields or only a few)
AFTER modification:
F_Equipment
F_HSC
F_Location
F_1245
F_1236
Then I have another table called MOTORS and I would prepend M_ to those
field names, and C_ for CONTROLLERS etc.
I'm looking at SQL's Alter Table method, but can't seem to figure out how to
have it loop through all the field names and rename them. What am I missing?
Thanks in advance,
Susan
I need to modify field names via VBA for numerous tables without knowing all
the field names in advance. I don't want to alter any data at this stage,
just the field names themselves.
For instance, for a table called FANS:
Field names BEFORE modification:
Equipment
HSC
Location
1245
1236
(etc - may have many numeric fields or only a few)
AFTER modification:
F_Equipment
F_HSC
F_Location
F_1245
F_1236
Then I have another table called MOTORS and I would prepend M_ to those
field names, and C_ for CONTROLLERS etc.
I'm looking at SQL's Alter Table method, but can't seem to figure out how to
have it loop through all the field names and rename them. What am I missing?
Thanks in advance,
Susan