Hi
Assuming that
1 - You've added the Number (Long Integer - Indexed Yes, Allow Duplicates) field to your patients table and called it something like PhysicianFK (this will be what's known as the Foreign Key to your tblPhysicians table)
2 - You have an Autonumber field in your tblPhysicans table called PhysicianID, and it's set to be the Primary Key of that table
3 - Change the name of the Name field in the physicians table to PhysicianName
then the steps you'd need to take are :
1- Make a backup of your db (or even two or three backups) and work on one of the backups for now
2 - Create a new query, and switch to SQL view of that query. Copy and paste the following SQL into the SQL view of the new query
CODE
UPDATE tblPatient, tblPhysician SET tblPatient.PhysicianFK = [PhysicianID] WHERE tblPhysician.[PhysicianName] = tblPatient.[Name]
3 - Run the query agreeing to the You're about to update etc etc message box if you get one
4 - Check in your tblPatients table that the PK values from tblPhysicians have been added
5 - Have a look in your physicians table for the mis-spelled name and make a note of the Primary Key number of that record, and also of the number of the Primary key of the correctly spelled name
6 - Create another new query, switch to SQL view again and paste the following
CODE
UPDATE tblPatient SET PhysicianFK = <<correctly spelled number>> WHERE PhysicianFK = <<incorrectly spelled number>>
7 - Run the new query and check that the numbers have been correctly updated. Repeat steps 6 and 7 for any other incorrectly spelled names
8 - Delete the old text name field from your tblPatients table so you're just left with the new numerical Foreign key field
That's about it, you should be good to go. Note, all of the above is untested - and did I mention you should try it on a
backup. If I didn't,
try it on a backup!!!