L
Larry Kahm
I am supporting an existing A2000 database that was built by someone who
learned Access "informally" (that's as polite as I'm going to be with that).
I need to clean up some of the errors and this is the first one that will
have any significant impact.
The Staff table contains pertinent information about the firm's employees.
It contains a field, Title, which is defined in the table as combo box /
look-up field (I know, this is considered a "sin"). The value list contains
items such as: Associate, Principle, Administrator, etc.
I want to build a new table, tblStaffTitles, with an autonumber key field
and the values from the look-up field.
But, what is the best approach for correcting and updating the Staff table
itself?
Here's what I was thinking of doing:
How far off is this approach? Is there something better or more practical?
Thanks, in advance!
Larry
learned Access "informally" (that's as polite as I'm going to be with that).
I need to clean up some of the errors and this is the first one that will
have any significant impact.
The Staff table contains pertinent information about the firm's employees.
It contains a field, Title, which is defined in the table as combo box /
look-up field (I know, this is considered a "sin"). The value list contains
items such as: Associate, Principle, Administrator, etc.
I want to build a new table, tblStaffTitles, with an autonumber key field
and the values from the look-up field.
But, what is the best approach for correcting and updating the Staff table
itself?
Here's what I was thinking of doing:
add a new column to the table, StaffTitle as a long integer (for the
foreign key)
run an update query that would use the current textual value of the Title
field to populate the StaffTitle field from the tblStaffTitiles
delete the Title field and rename StaffTitle to Title
add the two tables to the Relationships window and link the fields (pk to
fk).
How far off is this approach? Is there something better or more practical?
Thanks, in advance!
Larry