I hate string ID's. My first database, and now, I realize that I have shot myself in the foot for not using autonumber. I have changed one relationship already, now I want the change the last one. However, I want to do so without deleting info because if I did, I'd probably be fired. Ok, I have a catalog storage database.
tblCatalog tblCatDetails tblSubCategory
CatID<(one-many)>CatID SubCategory
CatDate SubCatID<(many-one)>SubCatID
etc. CategoryID
(one-many)
^
tblProdCategory |
CategoryID
Category
The field that I'd like to be autonumber is SubCatID in the tblSubCategory. This would make my life much easier. However, we have already entered 600 catalogs in, containing over 1200 products, all tagged with strings. I have tried to overcome this obstacle in the following manner:
1)add a new field in tblSubCategory called SubCategoryID(new ID).
2)kill the relationship b/w tblSubCategory & tblCatDetails
3)make SubCategoryID autonumber...which works, it updates it with the number seemingly corresponding to when they were entered. (if this part doesnt' work, it kills my whole idea)
4)re-create the relationship and look for ways to make it update all of the records with the new autonumber values........
And I am stuck, if anyone knows how to do this (and if my assumption of it updating in order is correct) I would forever be in your debt. Dan Eaton
deaton@caemachinery.com
tblCatalog tblCatDetails tblSubCategory
CatID<(one-many)>CatID SubCategory
CatDate SubCatID<(many-one)>SubCatID
etc. CategoryID
(one-many)
^
tblProdCategory |
CategoryID
Category
The field that I'd like to be autonumber is SubCatID in the tblSubCategory. This would make my life much easier. However, we have already entered 600 catalogs in, containing over 1200 products, all tagged with strings. I have tried to overcome this obstacle in the following manner:
1)add a new field in tblSubCategory called SubCategoryID(new ID).
2)kill the relationship b/w tblSubCategory & tblCatDetails
3)make SubCategoryID autonumber...which works, it updates it with the number seemingly corresponding to when they were entered. (if this part doesnt' work, it kills my whole idea)
4)re-create the relationship and look for ways to make it update all of the records with the new autonumber values........
And I am stuck, if anyone knows how to do this (and if my assumption of it updating in order is correct) I would forever be in your debt. Dan Eaton
deaton@caemachinery.com