S
Stephen Glynn
I'm trying to convert a flat CSV database into a normalised Access
database.
I've imported it into Access and want to replace the field 'Categories'
with a field 'CategoriesID'. I've run a query on E-listing (the table
I imported and which contains about 7000 records) and discovered I've
got 97 category types. I then created a tblCategories with an autoID
CategoryID field and a text CategoryName field. Then I turned my select
query into an append query and tipped all 97 records into tblCategories.
Next I created a number field in E-listing called CategoryID.
What I now want to do is join E-listing and tblAllProducts on the
CATEGORY = CategoryName fields, which works, and then update the empty
E-listing.CategoryID to tblCategories.CategoryID.
This I can't do because the query isn't updatable.
Why isn't it updatable and how can I make it updatable?
The SQL is
SELECT Categories.[Category ID], Categories.[Category Name],
[E-listing].CategoryID
FROM Categories LEFT JOIN [E-listing] ON Categories.[Category Name] =
[E-listing].CATEGORY;
Steve
database.
I've imported it into Access and want to replace the field 'Categories'
with a field 'CategoriesID'. I've run a query on E-listing (the table
I imported and which contains about 7000 records) and discovered I've
got 97 category types. I then created a tblCategories with an autoID
CategoryID field and a text CategoryName field. Then I turned my select
query into an append query and tipped all 97 records into tblCategories.
Next I created a number field in E-listing called CategoryID.
What I now want to do is join E-listing and tblAllProducts on the
CATEGORY = CategoryName fields, which works, and then update the empty
E-listing.CategoryID to tblCategories.CategoryID.
This I can't do because the query isn't updatable.
Why isn't it updatable and how can I make it updatable?
The SQL is
SELECT Categories.[Category ID], Categories.[Category Name],
[E-listing].CategoryID
FROM Categories LEFT JOIN [E-listing] ON Categories.[Category Name] =
[E-listing].CATEGORY;
Steve